Represents the interactive object containing a comment for a cell within a worksheet.
Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
public class CellAnnotation : InteractiveObject |
Visual Basic Copy Code |
---|
Public Class CellAnnotation |
Objects of this class cannot be instantiated directly. To create and associate an annotation with a cell, call the SetAnnotation method of the cell. Then, you can access the corresponding CellAnnotation object through the CellAnnotation property of the cell's Annotation.
The CellAnnotation class overrides the default values of some of the properties derived from InteractiveObject, as follows:
In addition the CellAnnotation objects draw a black outline when LineBrush is not set.
The following example illustrates how to set and customize a cell annotation.
C# Copy Code |
---|
// Create the annotation |
Visual Basic Copy Code |
---|
' Create the annotation |
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
MindFusion.Spreadsheet.Wpf.InteractiveObject
MindFusion.Spreadsheet.Wpf.CellAnnotation