'Declaration
Public Overloads Sub DrawString( _ ByVal s As String, _ ByVal font As Font, _ ByVal brush As Brush, _ ByVal layoutRectangle As Rectangle, _ ByVal format As StringFormat _ )
public void DrawString( string s, Font font, Brush brush, Rectangle layoutRectangle, StringFormat format )
Parameters
- s
- String to draw.
- font
- Font object that defines the text format of the string.
- brush
- Brush object that determines the color and texture of the drawn text.
- layoutRectangle
- Rectangle structure that specifies the location of the drawn text.
- format
- StringFormat object that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.