Spread Windows Forms 6.0 Product Documentation
GetImageBox(Graphics,Rectangle,Font,HorizontalAlignment,VerticalAlignment,String,ButtonTextAlign,Image,Int32) Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ColumnHeaderRenderer Class > GetImageBox Method : GetImageBox(Graphics,Rectangle,Font,HorizontalAlignment,VerticalAlignment,String,ButtonTextAlign,Image,Int32) Method


g
Image graphic
r
Image rectangle
font
Font
halign
Horizontal alignment
valign
Vertical alignment
text
Text
nAlign
Button text alignment
pict
Image
textIndent
TextIndent

Glossary Item Box

Returns information about the image.

Syntax

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)Copy Code
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 image

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.