Spread ASP.NET 6.0 Product Documentation
GetCompositeInfo Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetStyleModel Class : GetCompositeInfo Method


row
Row index of the cell in the model, or -1 to specify an entire column or the model default
column
Column index of the cell in the model, or -1 to specify an entire row or the model default
altIndex
Alternating row index of the cell, or -1 to skip composing any alternating style
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 as a composite of settings for the specified cell, column, row, or model default.

Syntax

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

Parameters

row
Row index of the cell in the model, or -1 to specify an entire column or the model default
column
Column index of the cell in the model, or -1 to specify an entire row or the model default
altIndex
Alternating row index of the cell, or -1 to skip composing any alternating style
destInfo
Destination StyleInfo object for composing the styles; if null, then a new StyleInfo should be created and used

Return Value

This implementation does nothing and returns null.

Remarks

Spread uses a composite of style settings to paint the spreadsheet. For example, for a cell, the component looks at the style settings for the column and row for the cell, and the cell's own settings.

To get or set direct setting information, use the GetDirectInfo and SetDirectInfo methods.

Do not use this method to return the style information for alternating rows. Alternating rows styles are handled directly. Use the GetDirectAltRowInfo method.

This implementation does nothing and returns null.

Example

This example returns the font for the style.
C#Copy Code
FarPoint.Web.Spread.Model.BaseSheetStyleModel bs;
bs = (FarPoint.Web.Spread.Model.BaseSheetStyleModel)FpSpread1.ActiveSheetView.StyleModel;
FarPoint.Web.Spread.StyleInfo si;
FpSpread1.ActiveSheetView.DefaultStyle.Font.Name = "Comic Sans MS";

si = bs.GetCompositeInfo(0, 0, -1, null);
Response.Write(si.Font.ToString());
Visual BasicCopy Code
Dim bs As FarPoint.Web.Spread.Model.BaseSheetStyleModel
bs = FpSpread1.ActiveSheetView.StyleModel
Dim si As FarPoint.Web.Spread.StyleInfo
FpSpread1.ActiveSheetView.DefaultStyle.Font.Name = "Comic Sans MS"

si = bs.GetCompositeInfo(0, 0, -1, Nothing)
Response.Write(si.Font.ToString())

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.