GrapeCity MultiRow Windows Forms Documentation
MultiRowHatchStyle Enumeration
Example Example 


Specifies the different patterns available when painting a Cell or Section.
Syntax
<FeatureAttribute(Name="LookAndFeel", Version="v5.0")>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.PatternEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
Public Enum MultiRowHatchStyle 
   Inherits System.Enum
Dim instance As MultiRowHatchStyle
[Feature(Name="LookAndFeel", Version="v5.0")]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.PatternEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
public enum MultiRowHatchStyle : System.Enum 
Members
MemberDescription
BackwardDiagonalSpecifies a pattern of lines on a diagonal from the upper right to the lower left.
DarkDownwardDiagonalSpecifies diagonal lines that slant to the right from the top points to the bottom points and are spaced 50 percent closer together than ForwardDiagonal, and are twice the width of ForwardDiagonal. This hatch pattern is not antialiased.
DarkHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than the Horizontal option and are twice the width of the Horizontal option.
DarkUpwardDiagonalSpecifies diagonal lines that slant to the left from the top points to the bottom points and are spaced 50 percent closer together than BackwardDiagonal, and are twice its width, but the lines are not antialiased.
DarkVerticalSpecifies vertical lines that are spaced 50 percent closer together than the Vertical option and are twice its width.
DashedDownwardDiagonalSpecifies dashed diagonal lines, that slant to the right from the top points to the bottom points.
DashedHorizontalSpecifies dashed horizontal lines.
DashedUpwardDiagonalSpecifies dashed diagonal lines, that slant to the left from the top points to the bottom points.
DashedVerticalSpecifies dashed vertical lines.
DiagonalBrickSpecifies a hatch that has the appearance of layered bricks that slant to the left from the top points to the bottom points.
DiagonalCrossSpecifies a pattern of crisscross diagonal lines.
DivotSpecifies a hatch that has the appearance of divots.
DottedDiamondSpecifies forward diagonal and backward diagonal lines, each of which is composed of dots that cross.
DottedGridSpecifies horizontal and vertical lines, each of which is composed of dots that cross.
ForwardDiagonalSpecifies a pattern of lines on a diagonal from the upper left to the lower right.
HorizontalSpecifies a pattern of horizontal lines.
HorizontalBrickSpecifies a hatch that has the appearance of horizontally layered bricks.
InheritSpecifies the property is not set and gets the value from the parent.
LargeCheckerBoardSpecifies a hatch that has the appearance of a checkerboard with squares that are twice the size of the SmallCheckerBoard option.
LargeConfettiSpecifies a hatch that has the appearance of confetti, and is composed of larger pieces than the SmallConfetti option.
LargeGridSpecifies horizontal and vertical lines that cross.
LightDownwardDiagonalSpecifies diagonal lines that slant to the right from the top points to the bottom points and are spaced 50 percent closer together than ForwardDiagonal, but are not antialiased.
LightHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than the Horizontal option.
LightUpwardDiagonalSpecifies diagonal lines that slant to the left from the top points to the bottom points and are spaced 50 percent closer together than BackwardDiagonal, but are not antialiased.
LightVerticalSpecifies vertical lines that are spaced 50 percent closer together than the Vertical option.
NarrowHorizontalSpecifies horizontal lines that are spaced 75 percent closer together than the horizontal hatch style (or 25 percent closer together than the LightHorizontal option).
NarrowVerticalSpecifies vertical lines that are spaced 75 percent closer together than the vertical hatch style (or 25 percent closer together than the LightVertical option).
NoneSpecifies no hatch style
OutlinedDiamondSpecifies forward diagonal and backward diagonal lines that cross, but are not antialiased.
Percent05Specifies a 5 percent hatch. The ratio of foreground color to background color is 5:100.
Percent10Specifies a 10 percent hatch. The ratio of foreground color to background color is 10:100.
Percent20Specifies a 20 percent hatch. The ratio of foreground color to background color is 20:100.
Percent25Specifies a 25 percent hatch. The ratio of foreground color to background color is 25:100.
Percent30Specifies a 30 percent hatch. The ratio of foreground color to background color is 30:100.
Percent40Specifies a 40 percent hatch. The ratio of foreground color to background color is 40:100.
Percent50Specifies a 50 percent hatch. The ratio of foreground color to background color is 50:100.
Percent60Specifies a 60 percent hatch. The ratio of foreground color to background color is 60:100.
Percent70Specifies a 70 percent hatch. The ratio of foreground color to background color is 70:100.
Percent75Specifies a 75 percent hatch. The ratio of foreground color to background color is 75:100.
Percent80Specifies an 80 percent hatch. The ratio of foreground color to background color is 80:100.
Percent90Specifies a 90 percent hatch. The ratio of foreground color to background color is 90:100.
PlaidSpecifies a hatch that has the appearance of plaid material.
ShingleSpecifies a hatch that has the appearance of diagonally layered shingles that slant to the right from the top points to the bottom points.
SmallCheckerBoardSpecifies a hatch that has the appearance of a checkerboard.
SmallConfettiSpecifies a hatch that has the appearance of confetti.
SmallGridSpecifies horizontal and vertical lines that cross and are spaced 50 percent closer together than the cross hatch style.
SolidDiamondSpecifies a hatch that has the appearance of a checkerboard placed diagonally.
SphereSpecifies a hatch that has the appearance of spheres adjacent to one another.
TrellisSpecifies a hatch that has the appearance of a trellis.
VerticalSpecifies a pattern of vertical lines.
WaveSpecifies horizontal lines that are composed of tildes.
WeaveSpecifies a hatch that has the appearance of a woven material.
WideDownwardDiagonalSpecifies diagonal lines that slant to the right from the top points to the bottom points, have the same spacing as hatch style ForwardDiagonal, and are triple its width, but are not antialiased.
WideUpwardDiagonalSpecifies diagonal lines that slant to the left from the top points to the bottom points, have the same spacing as hatch style BackwardDiagonal, and are triple its width, but are not antialiased.
ZigZagSpecifies horizontal lines that are composed of zigzags.
Remarks
Both Section and Cell can paint the MultiRowHatchStyle in the background, but the Section's MultiRowHatchStyle cannot be Inherit because the Section's value cannot inherit from its parent.
Example
This example creates a cell note.
GrapeCity.Win.MultiRow.CellNote cnote = new GrapeCity.Win.MultiRow.CellNote("Note");
GrapeCity.Win.MultiRow.CellNoteStyle cstyle = new GrapeCity.Win.MultiRow.CellNoteStyle();
cstyle.PatternStyle = GrapeCity.Win.MultiRow.MultiRowHatchStyle.DiagonalBrick;
cstyle.PatternColor = Color.Yellow;
cnote.Text = "Cell Note";
cnote.Style = cstyle;
cnote.Size = new System.Drawing.Size(70, 20);
cnote.DisplayMode = GrapeCity.Win.MultiRow.CellNoteDisplayMode.AlwaysShown;
GrapeCity.Win.MultiRow.TextBoxCell text1 = new GrapeCity.Win.MultiRow.TextBoxCell();
GrapeCity.Win.MultiRow.CheckBoxCell check2 = new GrapeCity.Win.MultiRow.CheckBoxCell();
GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { text1, check2 }, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
gcMultiRow1[1, 0].Value = 5;
gcMultiRow1[1, 0].Visible = false;
gcMultiRow1[1, 1].Note = cnote;
Dim cnote As New GrapeCity.Win.MultiRow.CellNote("Note")
Dim cstyle As New GrapeCity.Win.MultiRow.CellNoteStyle()
cstyle.PatternStyle = GrapeCity.Win.MultiRow.MultiRowHatchStyle.DiagonalBrick
cstyle.PatternColor = Color.Yellow
cnote.Text = "Cell Note"
cnote.Style = cstyle
cnote.Size = New System.Drawing.Size(70, 20)
cnote.DisplayMode = GrapeCity.Win.MultiRow.CellNoteDisplayMode.AlwaysShown
Dim text1 As New GrapeCity.Win.MultiRow.TextBoxCell()
Dim check2 As New GrapeCity.Win.MultiRow.CheckBoxCell()
Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {text1, check2}, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 3
GcMultiRow1(1, 0).Value = 5
GcMultiRow1(1, 1).Note = cnote
Inheritance Hierarchy

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

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
PatternStyle Property
PatternColor Property
PatternStyle Property
PatternColor Property

 

 


Copyright © GrapeCity, inc. All rights reserved.