PaintBuilder Class
PaintBuilder class
A builder class for creating paint values for SVG elements.
public class PaintBuilder
Constructors
Methods
Name | Description |
---|
Build() | Builds the final paint value. |
Color(Color) | Sets the paint to a specific color. |
ContextFill() | Sets the paint to ‘context-fill’, which uses the current fill color of the context. |
ContextStroke() | Sets the paint to ‘context-stroke’, which uses the current stroke color of the context. |
None() | Sets the paint to ’none’. |
PaintServerId(string, Color?) | Sets the paint to a paint server (like a gradient or pattern) with an optional fallback color. |
See Also