Spread ASP.NET 6.0 Product Documentation
Compose Method
See Also  Example Send Feedback
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 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.