GrapeCity MultiRow Windows Forms Documentation
FreezeLines Structure
Members  Example 


Represents all the frozen lines of the GcMultiRow control.
Object Model
FreezeLines StructureLine StructureLine StructureLine StructureLine StructureLine Structure
Syntax
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.FreezeLinesEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<TypeConverterAttribute("GrapeCity.Win.MultiRow.FreezeLinesTypeConvertor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
Public Structure FreezeLines 
   Inherits System.ValueType
Dim instance As FreezeLines
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.FreezeLinesEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[TypeConverter("GrapeCity.Win.MultiRow.FreezeLinesTypeConvertor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
public struct FreezeLines : System.ValueType 
Remarks
This class provides data for the GcMultiRow control's freeze lines. You can set each Line's style.
Example
The following code example shows how to use this class to customize the freeze line appearance of the MulitRow control. This code example is part of a larger example provided for the GcMultiRow.FreezeLines property.
void setFreezeStyleButton_Click(object sender, EventArgs e)
       {
           FreezeLines freezeLines = this.gcMultiRow1.FreezeLines;

           if (this.gcMultiRow1.FreezeLines.All == new Line(LineStyle.Thin, Color.Black))
           {
               // set top freeze line to a thin red line.
               freezeLines.Top = new Line(LineStyle.Thin, Color.Red);
               // set top freeze line to a thin red line.
               freezeLines.Bottom = new Line(LineStyle.MediumDashed, Color.Green);
               // set top freeze line to a thin red line.
               freezeLines.Right = new Line(LineStyle.Double, Color.Blue);
               // hide left freeze line, but freeze behavior still takes effect.
               freezeLines.Left = Line.Empty;
           }
           else
           {
               freezeLines.All = new Line(LineStyle.Thin, Color.Black);
           }

           this.gcMultiRow1.FreezeLines = freezeLines;
       }
Private Sub setFreezeStyleButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles 
setFreezeStyleButton.Click
        Dim freezeLines As FreezeLines = Me.gcMultiRow1.FreezeLines

        If Me.gcMultiRow1.FreezeLines.All = New Line(LineStyle.Thin, Color.Black) Then
            ' set top freeze line to a thin red line.
            freezeLines.Top = New Line(LineStyle.Thin, Color.Red)
            ' set top freeze line to a thin red line.
            freezeLines.Bottom = New Line(LineStyle.MediumDashed, Color.Green)
            ' set top freeze line to a thin red line.
            freezeLines.Right = New Line(LineStyle.Double, Color.Blue)
            ' hide left freeze line, but freeze behavior still takes effect.
            freezeLines.Left = Line.Empty
        Else
            freezeLines.All = New Line(LineStyle.Thin, Color.Black)
        End If

        Me.gcMultiRow1.FreezeLines = freezeLines
    End Sub
Inheritance Hierarchy

System.Object
   System.ValueType
      GrapeCity.Win.MultiRow.FreezeLines

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

FreezeLines Members
GrapeCity.Win.MultiRow Namespace
FreezeLines Property

 

 


Copyright © GrapeCity, inc. All rights reserved.