Class OptionButtonShapeImpl
This class represents option button form control.
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class OptionButtonShapeImpl : TextBoxShapeBase, IDisposable, ICloneParent, INamedObject, IOptionButtonShape, ITextBoxShape, ITextBox, IShape, IParentApplication
Constructors
OptionButtonShapeImpl(IApplication, Object)
Initialize new instance of the text box shape.
Declaration
public OptionButtonShapeImpl(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new shape. |
System.Object | parent | Parent object for the new shape. |
OptionButtonShapeImpl(IApplication, Object, MsofbtSpContainer, ExcelParseOptions)
Initializes new instance of the option button shape.
Declaration
public OptionButtonShapeImpl(IApplication application, object parent, MsofbtSpContainer shapeContainer, ExcelParseOptions options)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new shape. |
System.Object | parent | Parent object for the new shape. |
MsofbtSpContainer | shapeContainer | Shape's container. |
ExcelParseOptions | options | Parsing options. |
OptionButtonShapeImpl(IApplication, Object, MsofbtSpContainer, ExcelParseOptions, Int32)
Initializes new instance of the option button shape.
Declaration
public OptionButtonShapeImpl(IApplication application, object parent, MsofbtSpContainer shapeContainer, ExcelParseOptions options, int optionButtonId)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new shape. |
System.Object | parent | Parent object for the new shape. |
MsofbtSpContainer | shapeContainer | Shape's container. |
ExcelParseOptions | options | Parsing options. |
System.Int32 | optionButtonId |
Properties
CheckState
Indicates whether check box is checked.
Declaration
public ExcelCheckState CheckState { get; set; }
Property Value
Type |
---|
ExcelCheckState |
Display3DShading
Gets or sets value indicating whether 3D shadow is present.
Declaration
public bool Display3DShading { get; set; }
Property Value
Type |
---|
System.Boolean |
HAlignment
Horizontal alignment of the text.
Declaration
public ExcelCommentHAlign HAlignment { get; set; }
Property Value
Type |
---|
ExcelCommentHAlign |
Hyperlink
Get object that represents the hyperlink for the shape.
Declaration
public IHyperLink Hyperlink { get; }
Property Value
Type |
---|
IHyperLink |
InvokeEvent
Invoke Event
Declaration
public bool InvokeEvent { get; set; }
Property Value
Type |
---|
System.Boolean |
IsFirstButton
indicates whether the option button is first button in the group
Declaration
public bool IsFirstButton { get; set; }
Property Value
Type |
---|
System.Boolean |
LinkedCell
Gets or sets formula link value.
Declaration
public IRange LinkedCell { get; set; }
Property Value
Type |
---|
IRange |
RichText
Rich Text
Declaration
public RichTextString RichText { set; }
Property Value
Type |
---|
RichTextString |
TextRotation
Text rotation.
Declaration
public ExcelTextRotation TextRotation { get; set; }
Property Value
Type |
---|
ExcelTextRotation |
VAlignment
Vertical alignment of the text.
Declaration
public ExcelCommentVAlign VAlignment { get; set; }
Property Value
Type |
---|
ExcelCommentVAlign |
Methods
Clone(Object, Dictionary<String, String>, Dictionary<Int32, Int32>, Boolean)
Creates a clone of the current shape.
Declaration
public override IShape Clone(object parent, Dictionary<string, string> hashNewNames, Dictionary<int, int> dicFontIndexes, bool addToCollections)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | New parent for the shape object. |
System.Collections.Generic.Dictionary<System.String, System.String> | hashNewNames | Dictionary with new worksheet names. |
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | dicFontIndexes | Dictionary with new font indexes. |
System.Boolean | addToCollections | Indicates whether we should add created shape into all necessary parent collections. |
Returns
Type | Description |
---|---|
IShape | A copy of the current shape. |
Overrides
CreateDefaultOptions()
Creates default options.
Declaration
protected override MsofbtOPT CreateDefaultOptions()
Returns
Type | Description |
---|---|
MsofbtOPT | MsofbtOPT record |
Overrides
OnPrepareForSerialization()
This method is called inside of PrepareForSerialization to make shape-dependent preparations.
Declaration
protected override void OnPrepareForSerialization()
Overrides
ParseClientData(MsofbtClientData, ExcelParseOptions)
Parses client data record.
Declaration
protected override void ParseClientData(MsofbtClientData clientData, ExcelParseOptions options)
Parameters
Type | Name | Description |
---|---|---|
MsofbtClientData | clientData | Record to parse. |
ExcelParseOptions | options | Parse options. |
Overrides
SerializeOptions(MsoBase)
Serializes comment's options.
Declaration
protected override MsofbtOPT SerializeOptions(MsoBase parent)
Parameters
Type | Name | Description |
---|---|---|
MsoBase | parent | Parent record for options. |
Returns
Type | Description |
---|---|
MsofbtOPT | All options in MsofbtOPT record. |
Overrides
SerializeShape(MsofbtSpgrContainer)
Serializes current shape.
Declaration
protected override void SerializeShape(MsofbtSpgrContainer spgrContainer)
Parameters
Type | Name | Description |
---|---|---|
MsofbtSpgrContainer | spgrContainer | Container that will receive this comment. |