Spread Windows Forms 6.0 Product Documentation
IsRowUsed Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > ISheetStyleModel Interface : IsRowUsed Method


row
Row index in the model

Glossary Item Box

Gets whether the row in the model contains style settings.

Syntax

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

Parameters

row
Row index in the model

Return Value

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

Example

This example returns whether the specified row contains any styles.
C#Copy Code
FarPoint.Win.Spread.Model.ISheetStyleModel ssm;
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("StyleData");
FarPoint.Win.Spread.StyleInfo si;
bool b;
ssm = (FarPoint.Win.Spread.Model.ISheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
ns.BackColor = Color.Yellow;
fpSpread1.NamedStyles.Add(ns);
ssm.SetDirectInfo(0, 0, ns);
b = ssm.IsRowUsed(0);
label1.Text = "Does row 0 have a style set =  " + b.ToString();
Visual BasicCopy Code
Dim ssm As FarPoint.Win.Spread.Model.ISheetStyleModel
Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleData")
Dim b As Boolean
ssm = FpSpread1.ActiveSheet.Models.Style
ns.BackColor = Color.Yellow
FpSpread1.NamedStyles.Add(ns)
ssm.SetDirectInfo(0, 0, ns)
b = ssm.IsRowUsed(0)
Label1.Text = "Does row 0 have a style set =  " & b.ToString()

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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