PatternFill.Pattern Property
Gets or sets the pattern applied to a shape.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
PatternFillType Pattern { get; set; }
#Property Value
Type | Description |
---|---|
Pattern |
One of the preset patterns. |
Available values:
Name | Description | Example |
---|---|---|
Cross | A pattern of horizontal and vertical lines that cross each other. |
|
Dashed |
A pattern of dashed downward diagonal lines. |
|
Dashed |
A pattern of dashed horizontal lines. |
|
Dashed |
A pattern of dashed upward diagonal lines. |
|
Dashed |
A pattern of dashed vertical lines. |
|
Diagonal |
A pattern that has the appearance of diagonally layered bricks. |
|
Diagonal |
A pattern of crisscross diagonal lines. |
|
Divot | A pattern that has the appearance of divots. |
|
Dark |
A pattern of thick downward diagonal lines that are spaced 50% closer together than in the Pattern |
|
Dark |
A pattern of thick horizontal lines that are spaced 50% closer together than in the Pattern |
|
Dark |
A pattern of thick upward diagonal lines that are spaced 50% closer together than in the Pattern |
|
Dark |
A pattern of thick vertical lines that are spaced 50% closer together than in the Pattern |
|
Downward |
A pattern of downward diagonal lines. |
|
Dotted |
A pattern of dotted forward and backward diagonal lines that cross each other. |
|
Dotted |
A pattern of dotted horizontal and vertical lines that cross each other. |
|
Horizontal | A pattern of horizontal lines. |
|
Horizontal |
A pattern that has the appearance of horizontally layered bricks. |
|
Large |
A pattern that has the appearance of a checkerboard with large squares. |
|
Large |
A pattern that has the appearance of large confetti. |
|
Large |
A pattern of horizontal and vertical lines that cross each other to form a series of large squares. This pattern is equal to Pattern |
|
Light |
A pattern of thin downward diagonal lines that are spaced 50% closer together than in the Pattern |
|
Light |
A pattern of thin horizontal lines that are spaced 50% closer together than in the Pattern |
|
Light |
A pattern of thin upward diagonal lines that are spaced 50% closer together than in the Pattern |
|
Light |
A pattern of thin vertical lines that are spaced 50% closer together than in the Pattern |
|
Narrow |
A pattern of thin horizontal lines that are spaced 75% closer together than in the Pattern |
|
Narrow |
A pattern of thin vertical lines that are spaced 75% closer together than in the Pattern |
|
Open |
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. |
|
Small |
A pattern that has the appearance of a checkerboard with small squares. |
|
Small |
A pattern that has the appearance of small confetti. |
|
Small |
A pattern of closely spaced horizontal and vertical lines that cross each other to form a series of small squares. |
|
Solid |
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. |
|
Upward |
A pattern of upward diagonal lines. |
|
Vertical | A pattern of vertical lines. |
|
Wave | A pattern of horizontal lines that are composed of reversed tildes. |
|
Wide |
A pattern of wide downward diagonal lines whose width is three times greater than the width of Pattern |
|
Wide |
A pattern of wide upward diagonal lines whose width is three times greater than the width of Pattern |
|
Weave | A pattern that has the appearance of the woven material. |
|
Zig |
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.