GrapeCity MultiRow Windows Forms Documentation
SplitStyle Structure
Members  Example 


Represents the split line's style.
Syntax
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.SplitStyleEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<TypeConverterAttribute("GrapeCity.Win.MultiRow.SplitStyleTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
Public Structure SplitStyle 
   Inherits System.ValueType
Dim instance As SplitStyle
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.SplitStyleEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[TypeConverter("GrapeCity.Win.MultiRow.SplitStyleTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
public struct SplitStyle : System.ValueType 
Remarks

You can customize the split line and split button's appearance such as color and width with this class.

If the GcMultiRow.SplitOffice2007Style property's value is not Office2007Style.None, the GcMultiRow.SplitStyle property does not take effect.
Example
The following code example shows how to use this class to customize the split line's appearance. This code example is part of a larger example provided for the GcMultiRow.SplitMode property.
void changeSplitLineStyleButton_Click(object sender, EventArgs e)
       {
           SplitStyle splitStyle = this.gcMultiRow1.SplitStyle;

           if (this.gcMultiRow1.SplitStyle.BackColor == SystemColors.Control)
           {
               splitStyle.BackColor = Color.FromArgb(255, 215, 230, 247);
               splitStyle.DarkColor = Color.FromArgb(255, 104, 140, 175);
               splitStyle.LightColor = Color.FromArgb(255, 255, 255, 255);
               splitStyle.Width = 7;
           }
           else
           {
               splitStyle.BackColor = SystemColors.Control;
               splitStyle.DarkColor = SystemColors.ControlDark;
               splitStyle.LightColor = SystemColors.ControlLight;
               splitStyle.Width = 6;
           }

           this.gcMultiRow1.SplitStyle = splitStyle;
       }
Private Sub changeSplitLineStyleButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles changeSplitLineStyleButton.Click
        Dim splitStyle As SplitStyle = Me.gcMultiRow1.SplitStyle

        If Me.gcMultiRow1.SplitStyle.BackColor = SystemColors.Control Then
            splitStyle.BackColor = Color.FromArgb(255, 215, 230, 247)
            splitStyle.DarkColor = Color.FromArgb(255, 104, 140, 175)
            splitStyle.LightColor = Color.FromArgb(255, 255, 255, 255)
            splitStyle.Width = 7
        Else
            splitStyle.BackColor = SystemColors.Control
            splitStyle.DarkColor = SystemColors.ControlDark
            splitStyle.LightColor = SystemColors.ControlLight
            splitStyle.Width = 6
        End If

        Me.gcMultiRow1.SplitStyle = splitStyle
    End Sub
Inheritance Hierarchy

System.Object
   System.ValueType
      GrapeCity.Win.MultiRow.SplitStyle

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

Reference

SplitStyle Members
GrapeCity.Win.MultiRow Namespace
SplitStyle Property
SplitOffice2007Style Property

 

 


Copyright © GrapeCity, inc. All rights reserved.