Spread for ASP.NET 7.0 Product Documentation
Compose Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class : Compose Method


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

Glossary Item Box

Composes a style using the default styles and a specified StyleInfo object.

Syntax

Visual Basic (Declaration) 
Public Function Compose( _
   ByVal o As Object, _
   ByVal destInfo As StyleInfo _
) As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As DefaultStyleCollection
Dim o As Object
Dim destInfo As StyleInfo
Dim value As StyleInfo
 
value = instance.Compose(o, destInfo)
C# 
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

C#Copy Code
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);
Visual BasicCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.