[]
Initializes a new instance of the CharBox class.
public CharBox()
Public Sub New()
Initializes a new instance of the CharBox class.
public CharBox(bool autoSize)
Public Sub New(autoSize As Boolean)
Type | Name | Description |
---|---|---|
bool | autoSize |
Initializes a new instance of the CharBox class.
public CharBox(bool autoSize, Size size)
Public Sub New(autoSize As Boolean, size As Size)
Type | Name | Description |
---|---|---|
bool | autoSize | |
Size | size | A Size value indicates the actually size if autosize is false. |
Initializes a new instance of the CharBox class.
public CharBox(CharBoxStyle style)
Public Sub New(style As CharBoxStyle)
Type | Name | Description |
---|---|---|
CharBoxStyle | style | A CharBoxStyle enumeration indicates the style of the char box. |
Initializes a new instance of the CharBox class.
public CharBox(CharBoxBorder border)
Public Sub New(border As CharBoxBorder)
Type | Name | Description |
---|---|---|
CharBoxBorder | border | A CharBoxBorder object indicates the border setting of the char box. |
Initializes a new instance of the CharBox class.
public CharBox(CharBoxStyle style, CharBoxBorder border)
Public Sub New(style As CharBoxStyle, border As CharBoxBorder)
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. |
Initializes a new instance of the CharBox class.
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)
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. |
Initializes a new instance of the CharBox class.
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)
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. |