[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcGraphicsExt.DrawComboBox

DrawComboBox Method

DrawComboBox(GcGraphics, RectangleF, string, TextFormat, Color, Border, bool, float, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string fieldText

The control text.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

float orientation

The rotation angle, should be a multiple of 90.

bool drawButton

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, string, TextFormat, Color, Border, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string fieldText

The control text.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, string, Font, float, Color, Color, Border, bool, float, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string fieldText

The control text.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

float orientation

The rotation angle, should be a multiple of 90.

bool drawButton

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, string, Font, float, Color, Color, Border, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

string fieldText

The control text.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, TextFormat, Color, Border, bool, float, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

IList<ChoiceFieldItem> items

The control items.

int selectedIndex

The index of an item in items the text of which to draw.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

float orientation

The rotation angle, should be a multiple of 90.

bool drawButton

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, TextFormat, Color, Border, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

IList<ChoiceFieldItem> items

The control items.

int selectedIndex

The index of an item in items the text of which to draw.

TextFormat textFormat

The text format to use.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, Font, float, Color, Color, Border, bool, float, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

IList<ChoiceFieldItem> items

The control items.

int selectedIndex

The index of an item in items the text of which to draw.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.

float orientation

The rotation angle, should be a multiple of 90.

bool drawButton

Indicates whether to draw drop-down button.

DrawComboBox(GcGraphics, RectangleF, IList<ChoiceFieldItem>, int, Font, float, Color, Color, Border, bool)

Draws a combo box.

Declaration
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The control bounds.

IList<ChoiceFieldItem> items

The control items.

int selectedIndex

The index of an item in items the text of which to draw.

Font font

The font.

float fontSize

The font size.

Color foreColor

The fore color.

Color backColor

The background color.

Border border

The border definition.

bool required

Indicates whether to draw the border in red, ignoring the color specified in border.