Visual Basic (Declaration) | |
---|---|
Public Overloads Function GetImageBox( _ ByVal g As Graphics, _ ByVal r As Rectangle, _ ByVal font As Font, _ ByVal halign As HorizontalAlignment, _ ByVal valign As VerticalAlignment, _ ByVal text As String, _ ByVal nAlign As ButtonTextAlign, _ ByVal pict As Image, _ ByVal textIndent As Integer _ ) As Rectangle |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ColumnHeaderRenderer Dim g As Graphics Dim r As Rectangle Dim font As Font Dim halign As HorizontalAlignment Dim valign As VerticalAlignment Dim text As String Dim nAlign As ButtonTextAlign Dim pict As Image Dim textIndent As Integer Dim value As Rectangle value = instance.GetImageBox(g, r, font, halign, valign, text, nAlign, pict, textIndent) |
C# | |
---|---|
public Rectangle GetImageBox( Graphics g, Rectangle r, Font font, HorizontalAlignment halign, VerticalAlignment valign, string text, ButtonTextAlign nAlign, Image pict, int textIndent ) |
Parameters
- g
- Image graphic
- r
- Image rectangle
- font
- Font
- halign
- Horizontal alignment
- valign
- Vertical alignment
- text
- Text
- nAlign
- Button text alignment
- pict
- Image
- textIndent
- TextIndent
Return Value
Rectangle object for imageTarget 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