Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.DrawingSpace Namespace / Sizing Enumeration
Example Example


In This Topic
    Sizing Enumeration
    In This Topic
    Specifies the sizing aspects of the object.
    Syntax
    'Declaration
     
    Public Enum Sizing 
       Inherits System.Enum
    'Usage
     
    Dim instance As Sizing
    public enum Sizing : System.Enum 
    Members
    MemberDescription
    Height Allows user to size the height of the object
    HeightAndWidth Allows user to size both the height and width of the object
    None Does not allow user sizing
    Width Allows user to size the width of the object
    Example
    This example sets the Sizing enumeration.
    FarPoint.Win.Spread.Chart.SpreadChart chart;
    chart = fpSpread1.Sheets[0].AddChart(0, 0, typeof(FarPoint.Win.Chart.BarSeries), 400, 400, 200, 80, FarPoint.Win.Chart.ChartViewType.View2D, true);
    chart.Locked = true;
    //chart.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.None;
    //chart.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.Horizontal;
    Dim chart As FarPoint.Win.Spread.Chart.SpreadChart
    Dim range As New FarPoint.Win.Spread.Model.CellRange(0, 0, 7, 4)
    chart = fpSpread1.Sheets(0).AddChart(range, GetType(FarPoint.Win.Chart.BarSeries), 400, 300, 300, 80, FarPoint.Win.Chart.ChartViewType.View3D, False)
    chart.Locked = True
    'chart.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.None
    'chart.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.Horizontal
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.DrawingSpace.Sizing

    See Also