Visual Basic (Declaration) | |
---|---|
Public Property Locked As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AlternatingRow Dim value As Boolean instance.Locked = value value = instance.Locked |
C# | |
---|---|
public bool Locked {get; set;} |
Property Value
Boolean: true if marked as locked; false otherwiseTo create alternating rows, first set the AlternatingRows.Count property to specify the number of alternating row patterns, then set the properties for each pattern.
You can specify that certain rows of cells are locked; that is, the user cannot edit them. You mark rows of cells as locked by setting this property to true. Rows of cells are not locked until the SheetView Protect property is also set to true for the sheet. Because the default value of the Protect property is true, unless you have changed the value of the Protect property, when you mark a row of cells as locked, they are locked and the user cannot edit them. When the Protect property is false, the user can still interact with cells marked as locked.
Be aware that the setting for this property can be overridden if a named style is assigned to the cell using the StyleName property, and that named style sets the locked status.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.AlternatingRow altrow;
altrow = fpSpread1.ActiveSheet.AlternatingRows[0];
altrow.Locked = true; |
Visual Basic | Copy Code |
---|---|
Dim altrow As FarPoint.Win.Spread.AlternatingRow altrow = FpSpread1.ActiveSheet.AlternatingRows(0) altrow.Locked = True |
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
Reference
AlternatingRow ClassAlternatingRow Members
Protect Property
Count Property