PatternFill.Pattern Property
Gets or sets the pattern applied to a shape.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
PatternFillType | One of the preset patterns. |
Available values:
Name | Description | Example |
---|---|---|
Cross | A pattern of horizontal and vertical lines that cross each other. |
|
DashedDownwardDiagonal | A pattern of dashed downward diagonal lines. |
|
DashedHorizontal | A pattern of dashed horizontal lines. |
|
DashedUpwardDiagonal | A pattern of dashed upward diagonal lines. |
|
DashedVertical | A pattern of dashed vertical lines. |
|
DiagonalBrick | A pattern that has the appearance of diagonally layered bricks. |
|
DiagonalCross | A pattern of crisscross diagonal lines. |
|
Divot | A pattern that has the appearance of divots. |
|
DarkDownwardDiagonal | A pattern of thick downward diagonal lines that are spaced 50% closer together than in the PatternFillType.DownwardDiagonal pattern and whose width is two times greater than the width of PatternFillType.DownwardDiagonal lines. |
|
DarkHorizontal | A pattern of thick horizontal lines that are spaced 50% closer together than in the PatternFillType.Horizontal pattern and whose width is two times greater than the width of PatternFillType.Horizontal lines. |
|
DarkUpwardDiagonal | A pattern of thick upward diagonal lines that are spaced 50% closer together than in the PatternFillType.UpwardDiagonal pattern and whose width is two times greater than the width of PatternFillType.UpwardDiagonal lines. |
|
DarkVertical | A pattern of thick vertical lines that are spaced 50% closer together than in the PatternFillType.Vertical pattern and whose width is two times greater than the width of PatternFillType.Vertical lines. |
|
DownwardDiagonal | A pattern of downward diagonal lines. |
|
DottedDiamond | A pattern of dotted forward and backward diagonal lines that cross each other. |
|
DottedGrid | A pattern of dotted horizontal and vertical lines that cross each other. |
|
Horizontal | A pattern of horizontal lines. |
|
HorizontalBrick | A pattern that has the appearance of horizontally layered bricks. |
|
LargeCheckerBoard | A pattern that has the appearance of a checkerboard with large squares. |
|
LargeConfetti | A pattern that has the appearance of large confetti. |
|
LargeGrid | A pattern of horizontal and vertical lines that cross each other to form a series of large squares. This pattern is equal to PatternFillType.Cross. |
|
LightDownwardDiagonal | A pattern of thin downward diagonal lines that are spaced 50% closer together than in the PatternFillType.DownwardDiagonal pattern. |
|
LightHorizontal | A pattern of thin horizontal lines that are spaced 50% closer together than in the PatternFillType.Horizontal pattern. |
|
LightUpwardDiagonal | A pattern of thin upward diagonal lines that are spaced 50% closer together than in the PatternFillType.UpwardDiagonal pattern. |
|
LightVertical | A pattern of thin vertical lines that are spaced 50% closer together than in the PatternFillType.Vertical pattern. |
|
NarrowHorizontal | A pattern of thin horizontal lines that are spaced 75% closer together than in the PatternFillType.Horizontal pattern. |
|
NarrowVertical | A pattern of thin vertical lines that are spaced 75% closer together than in the PatternFillType.Vertical pattern. |
|
OpenDiamond | A pattern of forward and backward diagonal lines that cross each other. |
|
Percent10 | A 10% pattern. The ratio of the foreground color to the background color is 10 to 90. |
|
Percent20 | A 20% pattern. The ratio of the foreground color to the background color is 20 to 80. |
|
Percent25 | A 25% pattern. The ratio of the foreground color to the background color is 25 to 75. |
|
Percent30 | A 30% pattern. The ratio of the foreground color to the background color is 30 to 70. |
|
Percent40 | A 40% pattern. The ratio of the foreground color to the background color is 40 to 60. |
|
Percent5 | A 5% pattern. The ratio of the foreground color to the background color is 5 to 95. |
|
Percent50 | A 50% pattern. The ratio of the foreground color to the background color is 50 to 50. |
|
Percent60 | A 60% pattern. The ratio of the foreground color to the background color is 60 to 40. |
|
Percent70 | A 70% pattern. The ratio of the foreground color to the background color is 70 to 30. |
|
Percent75 | A 75% pattern. The ratio of the foreground color to the background color is 75 to 25. |
|
Percent80 | A 80% pattern. The ratio of the foreground color to the background color is 80 to 20. |
|
Percent90 | A 90% pattern. The ratio of the foreground color to the background color is 90 to 10. |
|
Plaid | A pattern that has the appearance of the plaid material. |
|
Shingle | A pattern that has the appearance of diagonally layered shingles. |
|
SmallCheckerBoard | A pattern that has the appearance of a checkerboard with small squares. |
|
SmallConfetti | A pattern that has the appearance of small confetti. |
|
SmallGrid | A pattern of closely spaced horizontal and vertical lines that cross each other to form a series of small squares. |
|
SolidDiamond | A pattern that has the appearance of a checkerboard made up of equal-sized diamonds. |
|
Sphere | A pattern that has the appearance of adjacent spheres. |
|
Trellis | A pattern that has the appearance of a trellis. |
|
UpwardDiagonal | A pattern of upward diagonal lines. |
|
Vertical | A pattern of vertical lines. |
|
Wave | A pattern of horizontal lines that are composed of reversed tildes. |
|
WideDownwardDiagonal | A pattern of wide downward diagonal lines whose width is three times greater than the width of PatternFillType.DownwardDiagonal lines. |
|
WideUpwardDiagonal | A pattern of wide upward diagonal lines whose width is three times greater than the width of PatternFillType.UpwardDiagonal lines. |
|
Weave | A pattern that has the appearance of the woven material. |
|
ZigZag | A pattern of horizontal lines that are composed of zigzags. |
Remarks
Use the following methods to apply a pattern to a shape or its border:
Shape.Fill.SetPatternFill - fills a shape with a pattern.
Shape.Line.Fill.SetPatternFill - applies a pattern to a line or a shape’s border.
The PatternFill.Pattern property allows you to access and change the applied pattern.