Spread for ASP.NET 9.0 Product Documentation
GetCompositeInfo Method (BaseSheetStyleModel)
Example 


Gets the style information as a composite of settings for the specified cell, column, row, or model default.
Overload List
OverloadDescription
GetCompositeInfo(Int32,Int32,Int32,StyleInfo)Gets the style information as a composite of settings for the specified cell, column, row, or model default.  
GetCompositeInfo(Int32,Int32,Int32,StyleInfo,StyleInfo,NamedStyle)Gets the style information as a composite of filtered settings for the specified cell, column, row, or model default.  
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.
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());
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 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

BaseSheetStyleModel Class
BaseSheetStyleModel Members
GetDirectAltRowInfo Method
GetDirectInfo Method
SetDirectInfo Method

 

 


Copyright © GrapeCity, inc. All rights reserved.