Spread for ASP.NET 8.0 Product Documentation
Compose Method (DefaultStyleCollection)
Example 


Style (NamedStyle object, StyleInfo object, or string name)
Destination for the composed StyleInfo object, or creates a new StyleInfo object if null
Composes a style using the default styles and a specified StyleInfo object.
Syntax
'Declaration
 
Public Function Compose( _
   ByVal o As Object, _
   ByVal destInfo As StyleInfo _
) As StyleInfo
'Usage
 
Dim instance As DefaultStyleCollection
Dim o As Object
Dim destInfo As StyleInfo
Dim value As StyleInfo
 
value = instance.Compose(o, destInfo)
public StyleInfo Compose( 
   object o,
   StyleInfo destInfo
)

Parameters

o
Style (NamedStyle object, StyleInfo object, or string name)
destInfo
Destination for the composed StyleInfo object, or creates a new StyleInfo object if null

Return Value

StyleInfo object containing the style information
Example
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
FarPoint.Web.Spread.StyleInfo s = new FarPoint.Web.Spread.StyleInfo();
s.BackColor = Color.Yellow;
dsc.Compose(dsc.DataAreaDefault, s);
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim s As New FarPoint.Web.Spread.StyleInfo
s.BackColor = Color.Yellow
dsc.Compose(dsc.DataAreaDefault, s)
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.