Spread for ASP.NET 11 Product Documentation
Compose(StyleInfo) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class > Compose Method : Compose(StyleInfo) Method
StyleInfo object
Composes style settings using the current style settings and those of a specified object.
Syntax
'Declaration
 
Public Overloads Overridable Sub Compose( _
   ByVal source As StyleInfo _
) 
'Usage
 
Dim instance As StyleInfo
Dim source As StyleInfo
 
instance.Compose(source)
public virtual void Compose( 
   StyleInfo source
)

Parameters

source
StyleInfo object
Example
This example creates two StyleInfo objects and the second instance is composed from the first. The second instance is then assigned to the active sheet.
FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
FarPoint.Web.Spread.StyleInfo cinfo = new FarPoint.Web.Spread.StyleInfo();
FarPoint.Web.Spread.Border bord = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 3);
info.Border = bord;
info.CellType = new FarPoint.Web.Spread.LabelCellType();
cinfo.Compose(info);
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, cinfo); 
Dim info As New FarPoint.Web.Spread.StyleInfo()
Dim cinfo As New FarPoint.Web.Spread.StyleInfo()
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 3)
info.Border = bord
info.CellType = New FarPoint.Web.Spread.LabelCellType()
cinfo.Compose(info)
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, cinfo) 
See Also

Reference

StyleInfo Class
StyleInfo Members
Overload List