Spread Windows Forms 7.0 Product Documentation
IsRowUsed Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetStyleModel Class : IsRowUsed Method


row
Index of row in the model

Glossary Item Box

Determines whether the row in the model contains style settings.

Syntax

Visual Basic (Declaration) 
Public Overrides Function IsRowUsed( _
   ByVal row As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetStyleModel
Dim row As Integer
Dim value As Boolean
 
value = instance.IsRowUsed(row)
C# 
public override bool IsRowUsed( 
   int row
)

Parameters

row
Index of row in the model

Return Value

Boolean: true if the specified row contains style settings; false otherwise

Example

This example returns whether the row in the model contains style settings.
C#Copy Code
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
sInfo.BackColor = Color.LightBlue;
FarPoint.Win.Spread.Model.DefaultSheetStyleModel ds = (FarPoint.Win.Spread.Model.DefaultSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;

int i;
for (i = 0; i <= 5; i++)
{
       ds.SetDirectInfo(i, 0, sInfo);
}

bool b;
b = ds.IsRowUsed(2);
if (b == true)
{
       MessageBox.Show("The row is used");
}
Visual BasicCopy Code
Dim sInfo As New FarPoint.Win.Spread.StyleInfo
sInfo.BackColor = Color.LightBlue
Dim ds As FarPoint.Win.Spread.Model.DefaultSheetStyleModel = FpSpread1.ActiveSheet.Models.Style
Dim i As Integer
For i = 0 To 5
       ds.SetDirectInfo(i, 0, sInfo)
Next

Dim b As Boolean
b = ds.IsRowUsed(2)
If b = True Then
       MessageBox.Show("The row is used")
End If

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.