MindFusion.Wpf Pack Programmer's Guide
Annotation Class
Remarks See Also
 





Represents a comment of a cell within a worksheet.

Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf

 Syntax

C#  Copy Code

public sealed class Annotation : IInplaceEditable

Visual Basic  Copy Code

Public NotInheritable Class Annotation
    Implements IInplaceEditable

 Remarks

Objects of this class cannot be instantiated directly. To create and associate an annotation with a cell, call the SetAnnotation method of the cell.

 Example

The following example illustrates how to set and customize a cell annotation.

C#  Copy Code

// Create the annotation
var cell = worksheet.Cells["A1"];
cell.SetAnnotation("Test annotation");

// Customize the annotation's appearance
cell.Annotation.CellAnnotation.BackBrush = Brushes.LightSteelBlue;

Visual Basic  Copy Code

' Create the annotation
Dim cell = worksheet.Cells("A1")
cell.SetAnnotation("Test annotation")

' Customize the annotation's appearance
cell.Annotation.CellAnnotation.BackBrush = Brushes.LightSteelBlue

 Inheritance Hierarchy

System.Object
    MindFusion.Spreadsheet.Wpf.Annotation

 See Also

Annotation Members
MindFusion.Spreadsheet.Wpf Namespace