Spread WPF Documentation
SplitBoxAlignment Enumeration
Example Example 


GrapeCity.Windows.SpreadSheet.UI Namespace : SplitBoxAlignment Enumeration
Specifies the placement of split boxes in the component with respect to their alignment with the scroll bars.
Syntax
'Declaration
 
Public Enum SplitBoxAlignment 
   Inherits System.Enum
'Usage
 
Dim instance As SplitBoxAlignment
public enum SplitBoxAlignment : System.Enum 
Members
MemberDescription
LeadingDisplays the split boxes before (to the left or above) the scroll bars.
TrailingDisplays the split boxes after (to the right or below) the scroll bars.
Example
This example sets the SplitBoxAlignment enumeration.
    gcSpreadSheet1.AddColumnViewport(0, 100);
    gcSpreadSheet1.AddRowViewport(0, 80);
    gcSpreadSheet1.RowSplitBoxAlignment = GrapeCity.Windows.SpreadSheet.UI.SplitBoxAlignment.Leading;
    gcSpreadSheet1.ColumnSplitBoxAlignment = GrapeCity.Windows.SpreadSheet.UI.SplitBoxAlignment.Trailing;
    gcSpreadSheet1.Sheets[0].SetViewportHeight(0, 100);
    gcSpreadSheet1.Sheets[0].SetViewportWidth(0, 100);
    gcSpreadSheet1.Invalidate();           
      
private void button1_Click(object sender, RoutedEventArgs e)
{
    gcSpreadSheet1.RemoveColumnViewport(0);
    gcSpreadSheet1.RemoveRowViewport(0);
    gcSpreadSheet1.Invalidate();
}
            GcSpreadSheet1.AddColumnViewport(0, 100)
            GcSpreadSheet1.AddRowViewport(0, 80)
            GcSpreadSheet1.RowSplitBoxAlignment = GrapeCity.Windows.SpreadSheet.UI.SplitBoxAlignment.Leading
            GcSpreadSheet1.ColumnSplitBoxAlignment = GrapeCity.Windows.SpreadSheet.UI.SplitBoxAlignment.Trailing
            GcSpreadSheet1.Sheets[0].SetViewportHeight(0, 100)
            GcSpreadSheet1.Sheets[0].SetViewportWidth(0, 100)
            GcSpreadSheet1.Invalidate()    

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
      GcSpreadSheet1.RemoveColumnViewport(0)
      GcSpreadSheet1.RemoveRowViewport(0)
      GcSpreadSheet1.Invalidate()
End Sub
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Windows.SpreadSheet.UI.SplitBoxAlignment

See Also

Reference

GrapeCity.Windows.SpreadSheet.UI Namespace