[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.ButtonCellType

ButtonCellType Class

Represents a button cell.

Inheritance
ButtonCellType
Namespace: FarPoint.Win.Spread.CellType
Assembly: FarPoint.Win.Spread.dll
Syntax
public class ButtonCellType : BaseCellType, ICellType, IEditor, IFormatter, ICloneable, IPropertyAllowedSupport, INotifyEditorValueChanged, IEnhancedRenderer, IRenderer, IEnhancedPdfRenderer, IPdfSupport, IAllowArrowKeysMoveActiveCell, IErrorIconSupport, IEditorVerticaAlignSupport, INumFmtSupportCellType, ISerializeSupport, ISerializable, IWordWrapSupport, IReuseEditorControl2, IReuseEditorControl, ITextOrientationSupport, ICellType, ICloneable<ICellType>, IFormatter
Public Class ButtonCellType
    Inherits BaseCellType
    Implements ICellType, IEditor, IFormatter, ICloneable, IPropertyAllowedSupport, INotifyEditorValueChanged, IEnhancedRenderer, IRenderer, IEnhancedPdfRenderer, IPdfSupport, IAllowArrowKeysMoveActiveCell, IErrorIconSupport, IEditorVerticaAlignSupport, INumFmtSupportCellType, ISerializeSupport, ISerializable, IWordWrapSupport, IReuseEditorControl2, IReuseEditorControl, ITextOrientationSupport, ICellType, ICloneable(Of ICellType), IFormatter

Constructors

Name Description
ButtonCellType()

Creates a new button cell with default settings.

ButtonCellType(ButtonCellType)

Creates a new copy from the specified cell type ("Copy constructor").

ButtonCellType(SerializationInfo, StreamingContext)

Creates a new button cell from serialization.

Properties

Name Description
BackgroundStyle

Gets or sets how the background is rendered.

ButtonColor

Gets or sets the color for the button.

ButtonColor2

Gets or sets the secondary color used when drawing a gradient button.

DarkColor

Gets or sets the shadow color for the button.

GradientMode

Gets or sets the drawing style of a gradient button.

HotkeyPrefix

Gets or sets whether the ampersand character underlines text.

LightColor

Gets or sets the highlight color for the button.

Picture

Gets or sets the image for the button.

PictureDown

Gets or sets the image for the down state of the button.

PictureZoomEffect

Gets or sets whether the image has zoom effects.

ShadowSize

Gets or sets the width (in pixels) of the shadow around the button.

Text

Gets or sets the button text.

TextAlign

Gets or sets how the text aligns itself in relation to the button image.

TextColor

Gets or sets the color for the button text.

TextDown

Gets or sets the text for the button down state.

TextOrientation

Gets or sets how text orients itself when painting the cell.

TextRotationAngle

Gets or sets the rotation angle of the text for the cell.

TwoState

Gets or sets whether the button has two states.

UseVisualStyleBackColor

Gets or sets whether to use the visual style setting background color.

WordWrap

Gets or sets whether text that is too long to fit in the cell wraps to additional lines.

Methods

Name Description
CancelEditing()

Cancels the editing of a cell.

Deserialize(XmlNodeReader)

Loads the object from XML.

Format(object)

Formats the specified data into the format of the cell type and returns it as a string.

GetEditorControl(Appearance, float)

Gets the edit control for this cell type with the specified appearance and scaling.

GetEditorControl(Control, Appearance, float)

Gets the edit control for this cell type with the specified appearance and scaling.

GetEditorValue()

Gets the unformatted value in the editor control.

GetObjectData(SerializationInfo, StreamingContext)

Populates the SerializationInfo class with information about the button cell type settings.

GetPreferredSize(Graphics, Size, Appearance, object, float)

Gets the preferred (maximum required) size of the cell for the renderer control.

GetReservedCursor(object)

Gets the cursor reserved for this cell type.

InitializeEditorControl(Control, Appearance, float)

Initializes the editor control for editing.

IsReservedKey(KeyEventArgs)

Determines whether the specified key has special meaning to the editor control.

IsReservedLocation(Graphics, int, int, Rectangle, Appearance, object, float)

Determines whether the specified cursor location has special meaning to the editor control.

IsReusable(Control)

Checks if this celltype is reusable.

PaintCell(Graphics, Rectangle, Appearance, object, bool, bool, float)

Paints the cell, when not in edit mode, to the specified graphics interface with the specified appearance settings.

Parse(string)

Parses the specified string to the data type of the cell type and returns it as an object.

Serialize(XmlTextWriter)

Saves the object to XML.

SetEditorValue(object)

Sets the value of the editor control.

StartEditing(EventArgs, bool, bool)

Starts the editing of a cell.

StopEditing()

Stops the editing of a cell.

ToHorizontalAlignment(CellHorizontalAlignment)

Converts a FarPoint.Win.Spread.CellHorizontalAlignment value to the corresponding FarPoint.Win.HorizontalAlignment value.

ToVerticalAlignment(CellVerticalAlignment)

Converts a FarPoint.Win.Spread.CellVerticalAlignment value to the corresponding FarPoint.Win.VerticalAlignment value.