Some parts of this article have been written with AI. Be aware that AI can make mistakes.

StencilFillType enum

Defines the fill style applied to a stencil's interior, supporting solid colors, linear/radial gradients, and decorative hatched patterns.

When gradients or patterns are used, the primary color is defined by BackgroundColor and the secondary/gradient target color is defined by SecondaryColor.

Value (byte) Name Description
0 Solid Standard solid fill using BackgroundColor.
1 LinearGradientToBottom Linear vertical gradient transitioning from top to bottom.
2 LinearGradientToRight Linear horizontal gradient transitioning from left to right.
3 LinearGradientDiagonal Linear diagonal gradient transitioning from top-left to bottom-right.
4 RadialGradient Radial gradient radiating from the center toward the edges.
5 StripedDiagonal Diagonal stripes pattern.
6 StripedHorizontal Horizontal stripes pattern.
7 StripedVertical Vertical stripes pattern.
8 CrossHatch Cross-hatch / grid pattern.
9 Dots Repetitive dots pattern.