Spread Windows Forms 6.0 Product Documentation
Orientation Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : Orientation Property


Glossary Item Box

Gets or sets the orientation of the progress indicator.

Syntax

Visual Basic (Declaration) 
Public Property Orientation As ProgressOrientation
Visual Basic (Usage)Copy Code
Dim instance As ProgressCellType
Dim value As ProgressOrientation
 
instance.Orientation = value
 
value = instance.Orientation
C# 
public ProgressOrientation Orientation {get; set;}

Property Value

ProgressOrientation setting that determines the orientation of the progress indicator

Example

This example creates a progress indicator cell and sets several of the available properties.

C#Copy Code
FarPoint.Win.Spread.CellType.ProgressCellType progress =new FarPoint.Win.Spread.CellType.ProgressCellType();

        progress.Style = FarPoint.Win.ProgressStyle.Bars;
        progress.FillColor = Color.Coral;
        progress.FillTextColor = Color.DarkGreen;
        progress.Minimum = 0;
        progress.Maximum = 100;
        progress.Orientation = FarPoint.Win.ProgressOrientation.LeftToRight;
        fpSpread1.Sheets[0].Cells[0, 0].CellType = progress;
        fpSpread1.Sheets[0].Cells[0, 0].Value = "50";
Visual BasicCopy Code
Dim progress As New FarPoint.Win.Spread.CellType.ProgressCellType()

        progress.Style = FarPoint.Win.ProgressStyle.Bars
        progress.FillColor = Color.Coral
        progress.FillTextColor = Color.DarkGreen
        progress.Minimum = 0
        progress.Maximum = 100
        progress.Orientation = FarPoint.Win.ProgressOrientation.LeftToRight
        FpSpread1.Sheets(0).Cells(0, 0).CellType = progress
        FpSpread1.Sheets(0).Cells(0, 0).Value = "50"

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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