[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CharBox

CharBox Class

Represents the CharBox settings.

Inheritance
CharBox
Implements
Namespace: GrapeCity.Win.Spread.InputMan.CellType
Assembly: GrapeCity.Win.PluginInputMan.dll
Syntax
public abstract class CharBox : ICloneable
Public MustInherit Class CharBox
    Implements ICloneable

Constructors

Name Description
CharBox()

Initializes a new instance of the CharBox class.

CharBox(CharBoxBorder)

Initializes a new instance of the CharBox class.

CharBox(CharBoxStyle)

Initializes a new instance of the CharBox class.

CharBox(CharBoxStyle, CharBoxBorder)

Initializes a new instance of the CharBox class.

CharBox(CharBoxStyle, CharBoxBorder, Color, Color)

Initializes a new instance of the CharBox class.

CharBox(bool)

Initializes a new instance of the CharBox class.

CharBox(bool, Size)

Initializes a new instance of the CharBox class.

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

Initializes a new instance of the CharBox class.

Properties

Name Description
AutoSize

Gets or sets a value indicating whether the height of the control automatically adjusts when the font assigned to the control is changed.

BackColor

Gets or sets the back color of the char box.

Border

Gets or sets border of the char box.

ContentAlignment

Gets or sets the content alignment of the char box.

Font

Gets or sets font of the char box.

ForeColor

Gets or sets the fore color of the char box.

Margin

Gets or sets the margins around the border of the char box.

Padding

Gets or sets the blank size between the border and the content within the char box.

Size

Gets or sets the size of the char box.

State

Gets or sets the state of the char box.

Style

Gets or sets the style of the char box.

Methods

Name Description
Clone()

Creates a new object that is a copy of the current instance.

OnPaint(PaintEventArgs)

Raises the Paint event.

OnPropertyChanged(PropertyChangedEventArgs)

Called when any property of the CharBox changed.

ResetBorder()

Reset border of the char box

ResetFont()

Reset font of the char box

ResetForeColor()

Reset foreColor of the char box

ResetPadding()

Reset padding of the char box

SetSize(Size)

Sets the size of the CharBox.

ShouldSerializeBorder()

Indicates whether the Border property should be persisted.

ShouldSerializeFont()

Indicates whether the Font property should be persisted.

ShouldSerializeForeColor()

Indicates whether the ForeColor property should be persisted.

ShouldSerializePadding()

Indicates whether the Padding property should be persisted.

Events

Name Description
Paint

Occurs after the char box is painted.