:orphan:
# PetscDrawStringCentered
draws text onto a drawable centered at a point 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawStringCentered(PetscDraw draw, PetscReal xc, PetscReal yl, int cl, const char text[])
```
Not Collective


## Input Parameters

- ***draw -*** the drawing context
- ***xc -*** the coordinates of right-left center of text
- ***yl -*** the coordinates of lower edge of text
- ***cl -*** the color of the text
- ***text -*** the text to draw





## See Also
 `PetscDraw`, `PetscDrawStringVertical()`, `PetscDrawString()`, `PetscDrawStringBoxed()`, `PetscDrawStringSetSize()`,
`PetscDrawStringGetSize()`

## Level
beginner

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


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


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