Spread ASP.NET 6.0 Product Documentation
ApplyBorder Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class : ApplyBorder Method


control
Control to which to apply the border
border
Border to apply

Glossary Item Box

Applies any non-blank border settings of a border to the specified control.

Syntax

Visual Basic (Declaration) 
Public Shared Sub ApplyBorder( _
   ByVal control As WebControl, _
   ByVal border As Border _
) 
Visual Basic (Usage)Copy Code
Dim control As WebControl
Dim border As Border
 
Border.ApplyBorder(control, border)
C# 
public static void ApplyBorder( 
   WebControl control,
   Border border
)

Parameters

control
Control to which to apply the border
border
Border to apply

Example

This examples creates a new Border object and applies that border to the specified Spread component.
C#Copy Code
FarPoint.Web.Spread.Borderborder=NewFarPoint.Web.Spread.Border(BorderStyle.Dotted,Color.Red,2);
border.ApplyBorder(FpSpread1,border);
Visual BasicCopy Code
DimborderAsNewFarPoint.Web.Spread.Border(BorderStyle.Dotted,Color.Red,2)
border.ApplyBorder(FpSpread1,border)

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.