[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CharBox.-ctor

CharBox Constructor

CharBox()

Initializes a new instance of the CharBox class.

Declaration
public CharBox()
Public Sub New()

CharBox(bool)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(bool autoSize)
Public Sub New(autoSize As Boolean)
Parameters
Type Name Description
bool autoSize

A bool value if set to true indicates the

CharBox(bool, Size)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(bool autoSize, Size size)
Public Sub New(autoSize As Boolean, size As Size)
Parameters
Type Name Description
bool autoSize

A bool value if set to true indicates the

Size size

A Size value indicates the actually size if autosize is false.

CharBox(CharBoxStyle)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(CharBoxStyle style)
Public Sub New(style As CharBoxStyle)
Parameters
Type Name Description
CharBoxStyle style

A CharBoxStyle enumeration indicates the style of the char box.

CharBox(CharBoxBorder)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(CharBoxBorder border)
Public Sub New(border As CharBoxBorder)
Parameters
Type Name Description
CharBoxBorder border

A CharBoxBorder object indicates the border setting of the char box.

CharBox(CharBoxStyle, CharBoxBorder)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(CharBoxStyle style, CharBoxBorder border)
Public Sub New(style As CharBoxStyle, border As CharBoxBorder)
Parameters
Type Name Description
CharBoxStyle style

A CharBoxStyle enumeration indicates the style of the char box.

CharBoxBorder border

A CharBoxBorder object indicates the border setting of the char box.

CharBox(CharBoxStyle, CharBoxBorder, Color, Color)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(CharBoxStyle style, CharBoxBorder border, Color backColor, Color foreColor)
Public Sub New(style As CharBoxStyle, border As CharBoxBorder, backColor As Color, foreColor As Color)
Parameters
Type Name Description
CharBoxStyle style

A CharBoxStyle enumeration indicates the style of the char box.

CharBoxBorder border

A CharBoxBorder object indicates the border setting of the char box.

Color backColor

A Color value indicates Color of the background.

Color foreColor

A Color value indicates Color of the foreground.

CharBox(bool, Size, Color, Color, CharBoxStyle, Padding, Padding, CharBoxBorder, Font, ContentAlignment)

Initializes a new instance of the CharBox class.

Declaration
public CharBox(bool autoSize, Size size, Color backColor, Color foreColor, CharBoxStyle style, Padding margin, Padding padding, CharBoxBorder border, Font font, ContentAlignment contentAlignment)
Public Sub New(autoSize As Boolean, size As Size, backColor As Color, foreColor As Color, style As CharBoxStyle, margin As Padding, padding As Padding, border As CharBoxBorder, font As Font, contentAlignment As ContentAlignment)
Parameters
Type Name Description
bool autoSize

A bool value if set to true indicates the char box is auto size.

Size size

A Size value indicates the actually size if autosize is false.

A CharBoxStyle enumeration indicates the style of the char box. A Color value indicates Color of the background. A Color value indicates Color of the foreground.
Color backColor
Color foreColor
CharBoxStyle style
Padding margin

A Padding value indicates the margin of the char box.

Padding padding

A Padding value indicates the padding of the char box.

CharBoxBorder border

A CharBoxBorder object indicates the border setting of the char box.

Font font

A Font object indicates font of the char box to render the char.

ContentAlignment contentAlignment

A ContentAlignment enumeration indicates the alignment of the content of the char box.