Renders text with alignment.
Declaration Syntax
C# | Visual Basic |
public static void RenderTextWithAlignment( Graphics g, RectangleF rect, Font font, string text, ContentAlignment align, Color color, int padding )
Public Shared Sub RenderTextWithAlignment ( _ g As Graphics, _ rect As RectangleF, _ font As Font, _ text As String, _ align As ContentAlignment, _ color As Color, _ padding As Integer _ )
Parameters
- g (Graphics)
- Graphics object to render to
- rect (RectangleF)
- Rectangle representing the area where the content should be aligned
- font (Font)
- Font
- text (String)
- Text to render
- align (ContentAlignment)
- Alignment
- color (Color)
- Fore color
- padding (Int32)
- Padding (space between borders and text)