GrapeCity MultiRow Windows Forms Documentation
Right Property (FreezeLines)
Example 


Gets or sets the right freeze line.
Syntax
Public Property Right As Line
Dim instance As FreezeLines
Dim value As Line
 
instance.Right = value
 
value = instance.Right
public Line Right {get; set;}

Property Value

A Line value that represents the right freeze line.
Example
The following code example shows how to use this property 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
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 Structure
FreezeLines Members

 

 


Copyright © GrapeCity, inc. All rights reserved.