FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > BaseSheetStyleModel Class : SetDirectAltRowInfo Method |
'Declaration Public Overridable Sub SetDirectAltRowInfo( _ ByVal index As Integer, _ ByVal info As StyleInfo _ )
'Usage Dim instance As BaseSheetStyleModel Dim index As Integer Dim info As StyleInfo instance.SetDirectAltRowInfo(index, info)
This implementation does nothing.
"Direct" in the style model means "not composite" or "not inherited." This method, SetDirectAltRowInfo, sets the alternating style properties. The alternating style is used by the viewport controls for merging alternating row styles with the composite style for a cell immediately prior to rendering.
SetDirectInfo sets the other style properties of a cell, column, or row directly.
The index (zero-based) must be between 0 and (AltRowCount-1).
FarPoint.Win.Spread.Model.BaseSheetStyleModel styleModel;
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
sInfo.BackColor = Color.LightBlue;
styleModel = (FarPoint.Win.Spread.Model.BaseSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
styleModel.AltRowCount = 3;
styleModel.SetDirectAltRowInfo(1, sInfo);
Dim styleModel As FarPoint.Win.Spread.Model.BaseSheetStyleModel Dim sInfo As New FarPoint.Win.Spread.StyleInfo() sInfo.BackColor = Color.LightBlue styleModel = FpSpread1.ActiveSheet.Models.Style styleModel.AltRowCount = 3 styleModel.SetDirectAltRowInfo(1, sInfo)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8