AppearanceObject.DrawString(GraphicsCache, String, Rectangle, Font, Color, StringFormat) Method
In This Article
Draws the specified text string at the specified location with the specified Color and Font objects using the formatting attributes of the specified StringFormat.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public void DrawString(
GraphicsCache cache,
string s,
Rectangle bounds,
Font font,
Color foreColor,
StringFormat strFormat
)
#Parameters
Name | Type | Description |
---|---|---|
cache | Graphics |
Graphics |
s | String | String to draw. |
bounds | Rectangle | Rectangle structure that specifies the location of the drawn text. |
font | Font | Font that defines the text format of the string. |
fore |
Color | Color of the drawn text. |
str |
String |
String |
See Also