# PetscDrawSetOptionsPrefix
Sets the prefix used for searching for all `PetscDraw` options in the database. 
## Synopsis
```
#include "petscdraw.h" 
#include "petscviewer.h" 
PetscErrorCode PetscDrawSetOptionsPrefix(PetscDraw draw, const char prefix[])
```
Logically Collective


## Input Parameters

- ***draw -*** the draw context
- ***prefix -*** the prefix to prepend to all option names





## See Also
 `PetscDraw`, `PetscDrawSetFromOptions()`, `PetscDrawCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/drawreg.c.html#PetscDrawSetOptionsPrefix">src/sys/classes/draw/interface/drawreg.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/drawreg.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
