GrapeCity MultiRow Windows Forms Documentation
LineStyle Enumeration
Example Example 


Specifies the border lines style.
Syntax
Public Enum LineStyle 
   Inherits System.Enum
Dim instance As LineStyle
public enum LineStyle : System.Enum 
Members
MemberDescription
DashDotSpecifies a 1 pixel width line consisting of a repeating pattern of dash-dot.
DashDotDotSpecifies a 1 pixel width line consisting of a repeating pattern of dash-dot-dot.
DashedSpecifies a 1 pixel width line consisting of dashes.
DottedSpecifies a 1 pixel width line consisting of dots.
DoubleSpecifies a 3 pixel width line which consists of two 1 pixel width solid lines and a 1 pixel width empty line in the middle of the two solid lines.
HairSpecifies a 1 pixels width hair style line.
MediumSpecifies a 2 pixel width solid line.
MediumDashDotSpecifies a 2 pixel width line consisting of a repeating pattern of dash dot.
MediumDashDotDotSpecifies a 2 pixel width line consisting of a repeating pattern of dash-dot-dot.
MediumDashedSpecifies a 2 pixel width line consisting of dashes.
NoneSpecifies no line style.
SlantedDashDotSpecifies a 2 pixel width line consisting of two slanted 1 pixel lines which consist of a repeating pattern of dash-dot.
ThickSpecifies a 3 pixel width solid line.
ThinSpecifies a 1 pixel width solid line.
Example
This example uses the LineStyle enumeration.
GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { new GrapeCity.Win.MultiRow.TextBoxCell(), new GrapeCity.Win.MultiRow.TextBoxCell(), new GrapeCity.Win.MultiRow.TextBoxCell() }, Int32.MaxValue, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber, 50);
GrapeCity.Win.MultiRow.Border bord = new GrapeCity.Win.MultiRow.Border(new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashDotDot, System.Drawing.Color.Aqua), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, System.Drawing.Color.DarkRed), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashed, System.Drawing.Color.Magenta), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange));
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
template1.ColumnHeaders[0].Cells[1].Value = "Column2";
template1.ColumnHeaders[0].Cells[2].Value = "Column3";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 5;
gcMultiRow1[1, 1].Style.Border = bord;
Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {New GrapeCity.Win.MultiRow.TextBoxCell(), New GrapeCity.Win.MultiRow.TextBoxCell(), New GrapeCity.Win.MultiRow.TextBoxCell()}, Int32.MaxValue, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber, 50)
Dim bord As New GrapeCity.Win.MultiRow.Border(New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashDotDot, System.Drawing.Color.Aqua), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, System.Drawing.Color.DarkRed), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashed, System.Drawing.Color.Magenta), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange))
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
template1.ColumnHeaders(0).Cells(1).Value = "Column2"
template1.ColumnHeaders(0).Cells(2).Value = "Column3"
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 5
GcMultiRow1(1, 1).Style.Border = bord
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.MultiRow.LineStyle

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

GrapeCity.Win.MultiRow Namespace
Border Class
Line Structure

 

 


Copyright © GrapeCity, inc. All rights reserved.