GrapeCity.Win.MultiRow Namespace : FreezeLines Structure |
<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
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
System.Object
System.ValueType
GrapeCity.Win.MultiRow.FreezeLines
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