menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextBoxShapeBase - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TextBoxShapeBase

    This is base class for text box shapes such as TextBox and Comment.

    Inheritance
    System.Object
    CommonObject
    ShapeImpl
    TextBoxShapeBase
    CheckBoxShapeImpl
    CommentShapeImpl
    OptionButtonShapeImpl
    TextBoxShapeImpl
    Implements
    IShape
    IParentApplication
    System.IDisposable
    ICloneParent
    INamedObject
    Inherited Members
    CommonObject.AddReference()
    CommonObject.AppImplementation
    CommonObject.Application
    CommonObject.CheckDisposed()
    CommonObject.Finalize()
    CommonObject.FindParent(Object, Type)
    CommonObject.FindParent(Object, Type, Boolean)
    CommonObject.FindParent(Type)
    CommonObject.FindParent(Type, Boolean)
    CommonObject.FindParent(Type[])
    CommonObject.FindParents(Type[])
    CommonObject.m_bIsDisposed
    CommonObject.Parent
    CommonObject.ReferenceCount
    CommonObject.ReleaseReference()
    CommonObject.SetParent(Object)
    ShapeImpl.AlternativeText
    ShapeImpl.AttachEvents()
    ShapeImpl.AutoSize
    ShapeImpl.BottomRow
    ShapeImpl.BottomRowOffset
    ShapeImpl.CanCopyShapesOnRangeCopy(Rectangle, Rectangle, Rectangle)
    ShapeImpl.CanInsertRowColumn(Int32, Int32, Boolean, Int32)
    ShapeImpl.ClientAnchor
    ShapeImpl.Clone(Object)
    ShapeImpl.CloneLineFill(ShapeImpl)
    ShapeImpl.CopyFillOptions(ShapeImpl, IDictionary)
    ShapeImpl.CopyFrom(ShapeImpl, Dictionary<String, String>, Dictionary<Int32, Int32>)
    ShapeImpl.CopyMoveShapeOnRangeCopyMove(WorksheetImpl, Rectangle, Boolean)
    ShapeImpl.CreateDefaultFillLineFormats()
    ShapeImpl.DEF_BACK_COLOR
    ShapeImpl.DEF_FORE_COLOR
    ShapeImpl.DEF_FULL_COLUMN_OFFSET
    ShapeImpl.DEF_FULL_ROW_OFFSET
    ShapeImpl.DEF_NOFILLHITTEST_VALUE
    ShapeImpl.DEF_SIZETEXTTOFITSHAPE_FALSE_VALUE
    ShapeImpl.DEF_SIZETEXTTOFITSHAPE_TRUE_VALUE
    ShapeImpl.DEF_TRANSPARENCY_MULL
    ShapeImpl.DEF_TRANSPARENCY_MULL_100
    ShapeImpl.DetachEvents()
    ShapeImpl.EvaluateTopLeftPosition()
    ShapeImpl.ExtractNecessaryOption(MsofbtOPT.FOPTE)
    ShapeImpl.Fill
    ShapeImpl.GenerateDefaultName()
    ShapeImpl.GetColorValue(MsofbtOPT.FOPTE)
    ShapeImpl.HasFill
    ShapeImpl.HasLineFormat
    ShapeImpl.Height
    ShapeImpl.HeightDouble
    ShapeImpl.Hyperlink
    ShapeImpl.Id
    ShapeImpl.ImageRelation
    ShapeImpl.ImageRelationId
    ShapeImpl.InnerSpRecord
    ShapeImpl.InsertRowColumn(Int32, Int32, Boolean)
    ShapeImpl.Instance
    ShapeImpl.IsMoveWithCell
    ShapeImpl.IsShapeVisible
    ShapeImpl.IsShortVersion
    ShapeImpl.IsSizeWithCell
    ShapeImpl.Left
    ShapeImpl.LeftColumn
    ShapeImpl.LeftColumnOffset
    ShapeImpl.LeftDouble
    ShapeImpl.Line
    ShapeImpl.m_bSupportOptions
    ShapeImpl.m_bUpdateLineFill
    ShapeImpl.m_options
    ShapeImpl.m_shape
    ShapeImpl.m_shapes
    ShapeImpl.Name
    ShapeImpl.Obj
    ShapeImpl.OldObjId
    ShapeImpl.OnAction
    ShapeImpl.OnDelete()
    ShapeImpl.OnDispose()
    ShapeImpl.OnPrepareForSerialization()
    ShapeImpl.ParentShapes
    ShapeImpl.ParentWorkbook
    ShapeImpl.ParseChildAnchor(MsofbtChildAnchor)
    ShapeImpl.ParseClientAnchor(MsofbtClientAnchor)
    ShapeImpl.ParseClientData(MsofbtClientData, ExcelParseOptions)
    ShapeImpl.ParseName(MsofbtOPT.FOPTE)
    ShapeImpl.ParseOption(MsofbtOPT.FOPTE)
    ShapeImpl.ParseShape(MsofbtSp)
    ShapeImpl.ParseShapeGroup(MsofbtSpgr)
    ShapeImpl.ParseShapeGroupContainer(MsofbtSpgrContainer)
    ShapeImpl.ParseUnKnown(MsoUnknown)
    ShapeImpl.PrepareForSerialization()
    ShapeImpl.Record
    ShapeImpl.RegisterInSubCollection()
    ShapeImpl.Remove()
    ShapeImpl.RemoveRowColumn(Int32, Int32, Boolean)
    ShapeImpl.RightColumn
    ShapeImpl.RightColumnOffset
    ShapeImpl.Scale(Int32, Int32)
    ShapeImpl.Serialize(MsofbtSpgrContainer)
    ShapeImpl.Serialize(MsofbtSpgrContainer, Boolean)
    ShapeImpl.SerializeCommentShadow(MsofbtOPT)
    ShapeImpl.SerializeForte(IFopteOptionWrapper, MsoOptions, Byte[])
    ShapeImpl.SerializeForte(IFopteOptionWrapper, MsoOptions, Byte[], Byte[], Boolean)
    ShapeImpl.SerializeForte(IFopteOptionWrapper, MsoOptions, Int32)
    ShapeImpl.SerializeForte(IFopteOptionWrapper, MsoOptions, Int32, Byte[], Boolean)
    ShapeImpl.SerializeHitTest(MsofbtOPT)
    ShapeImpl.SerializeMsoOptions(MsofbtOPT)
    ShapeImpl.SerializeName(MsofbtOPT, MsoOptions, String)
    ShapeImpl.SerializeOption(MsofbtOPT, MsoOptions, Int32)
    ShapeImpl.SerializeOption(MsofbtOPT, MsoOptions, UInt32)
    ShapeImpl.SerializeOptionSorted(MsofbtOPT, MsoOptions, UInt32)
    ShapeImpl.SerializeShape(MsofbtSpgrContainer)
    ShapeImpl.SerializeShape(MsofbtSpgrContainer, Boolean)
    ShapeImpl.SerializeShapeName(MsofbtOPT)
    ShapeImpl.SerializeShapeVisibility(MsofbtOPT)
    ShapeImpl.SerializeSizeTextToFit(MsofbtOPT)
    ShapeImpl.SetClientAnchor(MsofbtClientAnchor)
    ShapeImpl.SetName(String)
    ShapeImpl.SetObject(OBJRecord)
    ShapeImpl.SetOption(MsoOptions, Int32)
    ShapeImpl.SetParents()
    ShapeImpl.Shadow
    ShapeImpl.ShapeCount
    ShapeImpl.ShapeId
    ShapeImpl.ShapeRecord
    ShapeImpl.ShapeRotation
    ShapeImpl.ShapeType
    ShapeImpl.TextFrame
    ShapeImpl.ThreeD
    ShapeImpl.Top
    ShapeImpl.TopDouble
    ShapeImpl.TopRow
    ShapeImpl.TopRowOffset
    ShapeImpl.UpdateBottomRow()
    ShapeImpl.UpdateFormula(Int32, Int32, Rectangle, Int32, Rectangle)
    ShapeImpl.UpdateHeight()
    ShapeImpl.UpdateMso(MsoBase)
    ShapeImpl.UpdateNamedRangeIndexes(IDictionary<Int32, Int32>)
    ShapeImpl.UpdateNamedRangeIndexes(Int32[])
    ShapeImpl.UpdateNotSizeNotMoveShape(Boolean, Int32, Int32)
    ShapeImpl.UpdatePositions
    ShapeImpl.UpdateRightColumn()
    ShapeImpl.UpdateRightColumn(Int32)
    ShapeImpl.UpdateWidth()
    ShapeImpl.VmlShape
    ShapeImpl.Width
    ShapeImpl.WidthDouble
    ShapeImpl.Workbook
    ShapeImpl.Worksheet
    ShapeImpl.XmlDataStream
    ShapeImpl.XmlTypeStream
    Namespace: Syncfusion.XlsIO.Implementation.Shapes
    Assembly: Syncfusion.XlsIO.Portable.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.

    TextBoxShapeBase(IApplication, Object, MsofbtSpContainer, ExcelParseOptions)

    Extracts comment from MsofbtSpContainer.

    Declaration
    public TextBoxShapeBase(IApplication application, object parent, MsofbtSpContainer container, ExcelParseOptions options)
    Parameters
    Type Name Description
    IApplication application

    Application object for the current object.

    System.Object parent

    Parent object for the current object.

    MsofbtSpContainer container

    Container that represents comment.

    ExcelParseOptions options

    Parse options.

    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
    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
    ShapeImpl.Clone(Object, Dictionary<String, String>, Dictionary<Int32, Int32>, Boolean)

    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
    protected override MsofbtOPT CreateDefaultOptions()
    Returns
    Type Description
    MsofbtOPT

    Record containing default options.

    Overrides
    ShapeImpl.CreateDefaultOptions()

    Dispose()

    Dispose TextBoxShape

    Declaration
    public override void Dispose()
    Overrides
    CommonObject.Dispose()

    GetClientTextBoxRecord(MsoBase)

    Creates ClientTextBox record corresponding to this shape.

    Declaration
    protected MsofbtClientTextBox GetClientTextBoxRecord(MsoBase parent)
    Parameters
    Type Name Description
    MsoBase parent

    Parent record for ClientTextBox.

    Returns
    Type Description
    MsofbtClientTextBox

    Extracted Textbox record.

    GetClientTextBoxRecord(MsoBase, ExcelCommentVAlign)

    Creates ClientTextBox record corresponding to this shape.

    Declaration
    protected MsofbtClientTextBox GetClientTextBoxRecord(MsoBase parent, ExcelCommentVAlign vAlign)
    Parameters
    Type Name Description
    MsoBase parent

    Parent record for ClientTextBox.

    ExcelCommentVAlign vAlign
    Returns
    Type Description
    MsofbtClientTextBox

    Extracted Textbox record.

    InitializeVariables()

    Initializes variables.

    Declaration
    protected virtual void InitializeVariables()

    ParseClientTextBoxRecord(MsofbtClientTextBox, ExcelParseOptions)

    Parses ClientTextBox record.

    Declaration
    protected virtual void ParseClientTextBoxRecord(MsofbtClientTextBox textBox, ExcelParseOptions options)
    Parameters
    Type Name Description
    MsofbtClientTextBox textBox

    Record to parse.

    ExcelParseOptions options

    Parse options.

    ParseOtherRecords(MsoBase, ExcelParseOptions)

    Parses all unknown for ShapeImpl records.

    Declaration
    protected override void ParseOtherRecords(MsoBase subRecord, ExcelParseOptions options)
    Parameters
    Type Name Description
    MsoBase subRecord

    Record to parse.

    ExcelParseOptions options

    Parse options.

    Overrides
    ShapeImpl.ParseOtherRecords(MsoBase, ExcelParseOptions)

    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
    ShapeImpl.SerializeOptions(MsoBase)

    SerializeTextDirection(MsofbtOPT)

    Serializes text direction.

    Declaration
    protected void SerializeTextDirection(MsofbtOPT options)
    Parameters
    Type Name Description
    MsofbtOPT options

    MsofbtOPT record to which text ID will be added.

    Exceptions
    Type Condition
    System.ArgumentNullException

    If options argument is NULL.

    Implements

    IShape
    IParentApplication
    System.IDisposable
    ICloneParent
    INamedObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved