TextBoxShapeBase Class
This is base class for text box shapes such as TextBox and Comment.
Inheritance
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class TextBoxShapeBase : ShapeImpl, IShape, IParentApplication, IDisposable, ICloneParent, INamedObject
Constructors
TextBoxShapeBase(IApplication, Object)
Initializes new instance of the class.
Declaration
public TextBoxShapeBase(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new item. |
System.Object | parent | Parent object for the new item. |
Fields
m_sheet
Represents worksheet
Declaration
protected WorksheetImpl m_sheet
Field Value
Type |
---|
WorksheetImpl |
Properties
ColorObject
Color Object.
Declaration
public ColorObject ColorObject { get; set; }
Property Value
Type |
---|
ColorObject |
FillColor
Shape filling color.
Declaration
public Color FillColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HAlignment
Horizontal alignment of the text.
Declaration
public ExcelCommentHAlign HAlignment { get; set; }
Property Value
Type |
---|
ExcelCommentHAlign |
IsTextLocked
Indicates whether comment text is locked.
Declaration
public bool IsTextLocked { get; set; }
Property Value
Type |
---|
System.Boolean |
RichText
Comment text.
Declaration
public IRichTextString RichText { get; set; }
Property Value
Type |
---|
IRichTextString |
Text
Gets or sets text box text.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextRotation
Text rotation.
Declaration
public ExcelTextRotation TextRotation { get; set; }
Property Value
Type |
---|
ExcelTextRotation |
UnknownBodyProperties
Gets or sets the unknown body properties
Declaration
public Dictionary<string, string> UnknownBodyProperties { get; set; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.String> |
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
CopyFrom(TextBoxShapeBase, Dictionary<Int32, Int32>)
Copies data from another comment shape.
Declaration
public void CopyFrom(TextBoxShapeBase source, Dictionary<int, int> dicFontIndexes)
Parameters
Type | Name | Description |
---|---|---|
TextBoxShapeBase | source | Text shape to copy from. |
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | dicFontIndexes | Dictionary with new font indexes. |
CreateDefaultOptions()
Creates default shape options.
Declaration
[CLSCompliant(false)]
protected override MsofbtOPT CreateDefaultOptions()
Returns
Type | Description |
---|---|
Syncfusion.XlsIO.Parser.Biff_Records.MsoDrawing.MsofbtOPT | Record containing default options. |
Overrides
Dispose()
Dispose TextBoxShape
Declaration
public override void Dispose()
Overrides
InitializeVariables()
Initializes variables.
Declaration
protected virtual void InitializeVariables()