Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartPaint Class / DrawString Method / DrawString(String,ContentAlignment) Method
The string the draw.
A System.Drawing.ContentAlignment value representing the alignment of the string.


    DrawString(String,ContentAlignment) Method
    Draws the string with the specified alignment.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal s As String, _
       ByVal alignment As ContentAlignment _
    ) 
     
    'Usage
     
    Dim instance As SmartPaint
    Dim s As String
    Dim alignment As ContentAlignment
     
    instance.DrawString(s, alignment)

    Parameters

    s
    The string the draw.
    alignment
    A System.Drawing.ContentAlignment value representing the alignment of the string.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also