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





Identifies a single cell in a Worksheet.

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

 Syntax

C#  Copy Code

public class Cell : IInplaceEditable

Visual Basic  Copy Code

Public Class Cell
    Implements IInplaceEditable

 Remarks

Instances of this class can be accessed through the Cells collection of the Worksheet class. The Cell object can be used to get or set the data contained in the cell, to customize the appearance of the cell through its Style and to associate an annotation of a hyperlink with the cell.

 Example

The following example demonstrates how to set the data of a cell in an existing worksheet:

C#  Copy Code

var cell = worksheet.Cells["B5"];
cell.Data = 20;
cell.Style.TextBrush = Brushes.Green;

Visual Basic  Copy Code

Dim cell = worksheet.Cells("B5")
cell.Data = 20
cell.Style.TextBrush = Brushes.Green

 Inheritance Hierarchy

System.Object
    MindFusion.Spreadsheet.Wpf.Cell

 See Also

Cell Members
MindFusion.Spreadsheet.Wpf Namespace