Search
ICell.Style Property
See Also
 





Gets or sets the Style of the cell or group of cells.

Namespace: MindFusion.Diagramming.Lanes
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

Style Style { get; set; }

Visual Basic  Copy Code

Property Style As Style

 Property Value

An instance of the Lanes.Style class that specifies the style of this cell.

 Remarks

The Item property of the Grid class lets you access a group of cells through a single ICell reference, which lets you set the style of all cells in the group with a single assignment.

 Example

The following statement sets the brush for all cells in the specified column:

C#  Copy Code

diagram.LaneGrid[column, null].Style.BackgroundBrush =
    new MindFusion.Drawing.SolidBrush(Color.PaleGoldenrod);

Visual Basic  Copy Code

diagram.LaneGrid(column, Nothing).Style.BackgroundBrush = _
    new MindFusion.Drawing.SolidBrush(Color.PaleGoldenrod)

 See Also