Xceed SmartUI for WinForms v3.6 Documentation
DrawString(String,Rectangle,ContentAlignment) Method


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartPaint Class > DrawString Method : DrawString(String,Rectangle,ContentAlignment) Method
The string the draw.
A System.Drawing.Rectangle structure representing the rectangle in which to draw the string.
A System.Drawing.ContentAlignment value representing the alignment of the string.
Draws the string in the specified rectangle with the specified alignment.
Syntax
'Declaration
 
Public Overloads Sub DrawString( _
   ByVal s As String, _
   ByVal rectangle As Rectangle, _
   ByVal alignment As ContentAlignment _
) 
'Usage
 
Dim instance As SmartPaint
Dim s As String
Dim rectangle As Rectangle
Dim alignment As ContentAlignment
 
instance.DrawString(s, rectangle, alignment)
public void DrawString( 
   string s,
   Rectangle rectangle,
   ContentAlignment alignment
)

Parameters

s
The string the draw.
rectangle
A System.Drawing.Rectangle structure representing the rectangle in which to draw the string.
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

Reference

SmartPaint Class
SmartPaint Members
Overload List