Spread Windows Forms 6.0 Product Documentation
GetDirectAltRowInfo Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > BaseSheetStyleModel Class : GetDirectAltRowInfo Method


index
Index of the alternating row style to get; must be between 0 and AltRowCount-1
destInfo
Destination StyleInfo object for composing the styles; if null, then a new StyleInfo should be created and used

Glossary Item Box

Gets the style information for the specified alternating row in the model.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetDirectAltRowInfo( _
   ByVal index As Integer, _
   ByVal destInfo As StyleInfo _
) As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetStyleModel
Dim index As Integer
Dim destInfo As StyleInfo
Dim value As StyleInfo
 
value = instance.GetDirectAltRowInfo(index, destInfo)
C# 
public virtual StyleInfo GetDirectAltRowInfo( 
   int index,
   StyleInfo destInfo
)

Parameters

index
Index of the alternating row style to get; must be between 0 and AltRowCount-1
destInfo
Destination StyleInfo object for composing the styles; if null, then a new StyleInfo should be created and used

Return Value

StyleInfo object containing the style (format) settings

Remarks

This implementation does nothing and returns null.

"Direct" in the style model means "not composite" or "not inherited." This method, GetDirectAltRowInfo, returns the alternating style properties that have been set. The alternating row style is used by the viewport controls for merging alternating row styles with the composite style for a cell immediately prior to rendering.

GetDirectInfo returns the style properties that have been set for the specified cell, column, or row directly and does not return any settings that ar set for higher levels (like the entire model), while GetCompositeInfo returns the style properties "composed" or "merged" into one StyleInfo object that contains all the settings to paint and edit the cell, column, or row, including inherited settings.

Example

This example illustrates the use of this member by returning the alternating row information for the cell.
C#Copy Code
FarPoint.Win.Spread.Model.BaseSheetStyleModel styleModel;
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
styleModel = (FarPoint.Win.Spread.Model.BaseSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
styleModel.GetDirectAltRowInfo(0, sInfo);
Visual BasicCopy Code
Dim styleModel As FarPoint.Win.Spread.Model.BaseSheetStyleModel
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
styleModel = FpSpread1.ActiveSheet.Models.Style
styleModel.GetDirectAltRowInfo(0, sInfo)

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.