Class TextBoxShapeImpl
This class represents TextBox form control.
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class TextBoxShapeImpl : TextBoxShapeBase, IDisposable, ICloneParent, INamedObject, ITextBoxShapeEx, ITextBoxShape, ITextBox, IShape, IParentApplication
Constructors
TextBoxShapeImpl(IApplication, Object, WorksheetImpl)
Initialize new instance of the text box shape.
Declaration
public TextBoxShapeImpl(IApplication application, object parent, WorksheetImpl sheet)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new shape. |
System.Object | parent | Parent object for the new shape. |
WorksheetImpl | sheet |
TextBoxShapeImpl(IApplication, Object, MsofbtSpContainer, ExcelParseOptions)
Initializes new instance of the text box shape.
Declaration
public TextBoxShapeImpl(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. |
Properties
Coordinates2007
Gets or sets the 2007 co-ordinates of TextBox
Declaration
public Rectangle Coordinates2007 { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
FieldId
Gets or sets the field id of TextBox
Declaration
public string FieldId { get; set; }
Property Value
Type |
---|
System.String |
FieldType
Gets or sets the field type of TextBox
Declaration
public string FieldType { get; set; }
Property Value
Type |
---|
System.String |
Hyperlink
Get object that represents the hyperlink for the shape.
Declaration
public IHyperLink Hyperlink { get; }
Property Value
Type |
---|
IHyperLink |
Text
Gets or sets text box text respect with this value, isautosize updated
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextLink
Specifies a formula linking to spreadhseet cell data
Declaration
public string TextLink { get; set; }
Property Value
Type |
---|
System.String |
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 shape options.
Declaration
protected override MsofbtOPT CreateDefaultOptions()
Returns
Type | Description |
---|---|
MsofbtOPT | Record with default option specified. |
Overrides
OnPrepareForSerialization()
This method is called inside of PrepareForSerialization to make shape-dependent preparations.
Declaration
protected override void OnPrepareForSerialization()
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. |