Spread Windows Forms 7.0 Product Documentation
Customizing the Outline of the Component
Support Options
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Customizing the Sheet Appearance > Customizing the Appearance of the Overall Component > Customizing the Outline of the Component

Glossary Item Box

You can set the appearance of the outline of the overall component. The following figures show the types of outlines (or border) styles.

Outline (Border) Style Example
Fixed, three-dimensional (default)

Example of 3-D Outline

Fixed, single-line

Example of Line Border

None

Example of No Outline

For more details, refer to the FpSpread.BorderStyle property and the BorderStyle enumeration in the Microsoft .NET Framework.

Using the Properties Window

This way of setting the border is done at design time and uses the Properties window of Visual Studio .NET.

  1. Select the Spread component.
  2. With the properties window open, in the Appearance category, select the Border Style property.
  3. Select a value from the drop-down list. Press Enter. The new property is now set.

Using Code

This way of setting the border is done in code and is not seen until run time.

Add a line of code that sets the specific property, the BorderStyle property of the FpSpread class.

Example

This example shows how to set the border to be a single-line border.

C# Copy Code
fpSpread1.BorderStyle = BorderStyle.FixedSingle;
VB Copy Code
FpSpread1.BorderStyle = BorderStyle.FixedSingle

Using the Spread Designer

  1. In the property list, in the Appearance category, select the BorderStyle property.
  2. From the drop-down list, select the border style.
  3. From the File menu, select Apply and Exit to apply your changes to the Spread component and exit Spread Designer.
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.