menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CommentShapeImpl - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CommentShapeImpl

    Class used for comment shapes.

    Inheritance
    System.Object
    CommonObject
    ShapeImpl
    TextBoxShapeBase
    CommentShapeImpl
    Implements
    System.IDisposable
    ICloneParent
    INamedObject
    ICommentShape
    IComment
    ITextBox
    IShape
    IParentApplication
    Inherited Members
    CommonObject.AddReference()
    CommonObject.AppImplementation
    CommonObject.Application
    CommonObject.CheckDisposed()
    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.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.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.Id
    ShapeImpl.ImageRelation
    ShapeImpl.ImageRelationId
    ShapeImpl.InnerSpRecord
    ShapeImpl.InsertRowColumn(Int32, Int32, Boolean)
    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.OnDispose()
    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.Remove()
    ShapeImpl.RemoveRowColumn(Int32, Int32, Boolean)
    ShapeImpl.RightColumn
    ShapeImpl.RightColumnOffset
    ShapeImpl.Scale(Int32, Int32)
    ShapeImpl.Serialize(MsofbtSpgrContainer)
    ShapeImpl.Serialize(MsofbtSpgrContainer, Boolean)
    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, 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.UpdatePositions
    ShapeImpl.UpdateRightColumn()
    ShapeImpl.UpdateRightColumn(Int32)
    ShapeImpl.UpdateWidth()
    ShapeImpl.VmlShape
    ShapeImpl.Width
    ShapeImpl.WidthDouble
    ShapeImpl.Workbook
    ShapeImpl.Worksheet
    ShapeImpl.XmlDataStream
    ShapeImpl.XmlTypeStream
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    TextBoxShapeBase.ColorObject
    TextBoxShapeBase.CopyFrom(TextBoxShapeBase, Dictionary<Int32, Int32>)
    TextBoxShapeBase.FillColor
    TextBoxShapeBase.GetClientTextBoxRecord(MsoBase)
    TextBoxShapeBase.GetClientTextBoxRecord(MsoBase, ExcelCommentVAlign)
    TextBoxShapeBase.HAlignment
    TextBoxShapeBase.IsTextLocked
    TextBoxShapeBase.m_sheet
    TextBoxShapeBase.ParseClientTextBoxRecord(MsofbtClientTextBox, ExcelParseOptions)
    TextBoxShapeBase.ParseOtherRecords(MsoBase, ExcelParseOptions)
    TextBoxShapeBase.RichText
    TextBoxShapeBase.SerializeOptions(MsoBase)
    TextBoxShapeBase.SerializeTextDirection(MsofbtOPT)
    TextBoxShapeBase.Text
    TextBoxShapeBase.TextRotation
    TextBoxShapeBase.UnknownBodyProperties
    TextBoxShapeBase.VAlignment
    Namespace: Syncfusion.XlsIO.Implementation.Shapes
    Assembly: Syncfusion.XlsIO.Base.dll
    Syntax
    public class CommentShapeImpl : TextBoxShapeBase, IDisposable, ICloneParent, INamedObject, ICommentShape, IComment, ITextBox, IShape, IParentApplication

    Constructors

    CommentShapeImpl(IApplication, Object)

    Creates new comment with specified Application and Parent objects.

    Declaration
    public CommentShapeImpl(IApplication application, object parent)
    Parameters
    Type Name Description
    IApplication application

    Application object for the current object.

    System.Object parent

    Parent object for the current object.

    CommentShapeImpl(IApplication, Object, MsofbtSpContainer)

    Extracts comment from MsofbtSpContainer.

    Declaration
    [CLSCompliant(false)]
    public CommentShapeImpl(IApplication application, object parent, MsofbtSpContainer container)
    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.

    CommentShapeImpl(IApplication, Object, MsofbtSpContainer, ExcelParseOptions)

    Extracts comment from MsofbtSpContainer.

    Declaration
    [CLSCompliant(false)]
    public CommentShapeImpl(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.

    CommentShapeImpl(IApplication, Object, Boolean)

    Creates new comment with specified Application and Parent objects.

    Declaration
    public CommentShapeImpl(IApplication application, object parent, bool bIsParseOptions)
    Parameters
    Type Name Description
    IApplication application

    Application object for the current object.

    System.Object parent

    Parent object for the current object.

    System.Boolean bIsParseOptions

    Indicates is parse comment fill line options.

    CommentShapeImpl(IApplication, Object, String)

    Creates new comment with specified text.

    Declaration
    public CommentShapeImpl(IApplication application, object parent, string commentText)
    Parameters
    Type Name Description
    IApplication application

    Application object for the current object.

    System.Object parent

    Parent object for the current object.

    System.String commentText

    Text of new comment.

    Fields

    DEF_OFFSET

    Default offset in the cell of comment frame.

    Declaration
    public const int DEF_OFFSET = 240
    Field Value
    Type
    System.Int32

    Properties

    Author

    Comment's author.

    Declaration
    public string Author { get; set; }
    Property Value
    Type
    System.String

    Column

    Column of the commented cell.

    Declaration
    public int Column { get; set; }
    Property Value
    Type
    System.Int32

    Hyperlink

    Get object that represents the hyperlink for the shape.

    Declaration
    public IHyperLink Hyperlink { get; }
    Property Value
    Type
    IHyperLink

    Instance

    Returns instance value. Read-only.

    Declaration
    public override int Instance { get; }
    Property Value
    Type
    System.Int32
    Overrides
    ShapeImpl.Instance

    IsVisible

    Indicates whether comment to be shown or hidden.

    Declaration
    public bool IsVisible { get; set; }
    Property Value
    Type
    System.Boolean

    Row

    Row of the commented cell.

    Declaration
    public int Row { get; set; }
    Property Value
    Type
    System.Int32

    Methods

    CanCopyShapesOnRangeCopy(Rectangle, Rectangle, out Rectangle)

    Indicates is can copy current shape.

    Declaration
    public override bool CanCopyShapesOnRangeCopy(Rectangle sourceRec, Rectangle destRec, out Rectangle newPosition)
    Parameters
    Type Name Description
    System.Drawing.Rectangle sourceRec

    Represents source range dimension.

    System.Drawing.Rectangle destRec

    Represents destination range dimension.

    System.Drawing.Rectangle newPosition

    Gets new position of shape.

    Returns
    Type Description
    System.Boolean

    Returns true if can copy; otherwise - false.

    Overrides
    ShapeImpl.CanCopyShapesOnRangeCopy(Rectangle, Rectangle, out Rectangle)

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

    CopyCommentOptions(CommentShapeImpl, Dictionary<Int32, Int32>)

    Copy comments options.

    Declaration
    public void CopyCommentOptions(CommentShapeImpl sourceComment, Dictionary<int, int> dicFontIndexes)
    Parameters
    Type Name Description
    CommentShapeImpl sourceComment

    Represents source comment.

    System.Collections.Generic.Dictionary<System.Int32, System.Int32> dicFontIndexes

    Represents dictionary with shape indexes.

    CopyMoveShapeOnRangeCopyMove(WorksheetImpl, Rectangle, Boolean)

    Copies / moves shape in range copy / move.

    Declaration
    public override ShapeImpl CopyMoveShapeOnRangeCopyMove(WorksheetImpl sheet, Rectangle destRec, bool bIsCopy)
    Parameters
    Type Name Description
    WorksheetImpl sheet

    Represents destination sheet.

    System.Drawing.Rectangle destRec

    Represents position of .

    System.Boolean bIsCopy

    Indicates is copy.

    Returns
    Type Description
    ShapeImpl

    Returns copied moved shape.

    Overrides
    ShapeImpl.CopyMoveShapeOnRangeCopyMove(WorksheetImpl, Rectangle, Boolean)

    CreateDefaultFillLineFormats()

    Create default fill line formats

    Declaration
    protected override void CreateDefaultFillLineFormats()
    Overrides
    ShapeImpl.CreateDefaultFillLineFormats()

    CreateDefaultOptions()

    Creates default options.

    Declaration
    [CLSCompliant(false)]
    protected override MsofbtOPT CreateDefaultOptions()
    Returns
    Type Description
    MsofbtOPT

    MsofbtOPT record.

    Overrides
    TextBoxShapeBase.CreateDefaultOptions()

    Dispose()

    Disposes the comment shape

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

    InitializeVariables()

    Initialize variables.

    Declaration
    protected override void InitializeVariables()
    Overrides
    TextBoxShapeBase.InitializeVariables()

    OnDelete()

    Removes shapes from collection.

    Declaration
    protected override void OnDelete()
    Overrides
    ShapeImpl.OnDelete()

    OnPrepareForSerialization()

    This method is called inside of PrepareForSerialization to make shape-dependent preparations.

    Declaration
    protected override void OnPrepareForSerialization()
    Overrides
    ShapeImpl.OnPrepareForSerialization()

    RegisterInSubCollection()

    Registers shape in all required sub collections.

    Declaration
    public override void RegisterInSubCollection()
    Overrides
    ShapeImpl.RegisterInSubCollection()

    SerializeCommentShadow(MsofbtOPT)

    Serialize comment shadow.

    Declaration
    [CLSCompliant(false)]
    protected override void SerializeCommentShadow(MsofbtOPT option)
    Parameters
    Type Name Description
    MsofbtOPT option

    Represents option holder.

    Overrides
    ShapeImpl.SerializeCommentShadow(MsofbtOPT)

    SerializeOption344(MsofbtOPT)

    Serializes option with index 344 (this is unknown option).

    Declaration
    [CLSCompliant(false)]
    protected void SerializeOption344(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.

    SerializeShape(MsofbtSpgrContainer)

    Serializes current shape.

    Declaration
    [CLSCompliant(false)]
    protected override void SerializeShape(MsofbtSpgrContainer spgrContainer)
    Parameters
    Type Name Description
    MsofbtSpgrContainer spgrContainer

    Container that will receive this comment.

    Overrides
    ShapeImpl.SerializeShape(MsofbtSpgrContainer)

    SerializeTextId(MsofbtOPT)

    Serializes Text ID.

    Declaration
    [CLSCompliant(false)]
    protected void SerializeTextId(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.

    UpdateNotSizeNotMoveShape(Boolean, Int32, Int32)

    Updates shape that include not size and not move flags.

    Declaration
    protected override void UpdateNotSizeNotMoveShape(bool bRow, int index, int iCount)
    Parameters
    Type Name Description
    System.Boolean bRow

    Indicates is row or column to update.

    System.Int32 index

    One-based row or column index.

    System.Int32 iCount

    Number of inserted/removed rows/column.

    Overrides
    ShapeImpl.UpdateNotSizeNotMoveShape(Boolean, Int32, Int32)

    Implements

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