Class SvgPaintServer
Represents the base class for all paint servers that are intended to be used as a fill or stroke.
Inheritance
SvgPaintServer
Inherited Members
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Svg
Assembly: Svg.dll
Syntax
[TypeConverter(typeof(SvgPaintServerFactory))]
public abstract class SvgPaintServer : SvgElement, ISvgTransformable, ICloneable, ISvgNode
Fields
| Improve this Doc View SourceInherit
A SvgPaintServer that should inherit from its parent.
Declaration
public static readonly SvgPaintServer Inherit
Field Value
| Type | Description |
|---|---|
| SvgPaintServer |
None
An unspecified SvgPaintServer.
Declaration
public static readonly SvgPaintServer None
Field Value
| Type | Description |
|---|---|
| SvgPaintServer |
NotSet
An unspecified SvgPaintServer.
Declaration
public static readonly SvgPaintServer NotSet
Field Value
| Type | Description |
|---|---|
| SvgPaintServer |
Properties
| Improve this Doc View SourceGetCallback
Declaration
public Func<SvgPaintServer> GetCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<SvgPaintServer> |
Methods
| Improve this Doc View SourceGetBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)
Gets a
Declaration
public abstract Brush GetBrush(SvgVisualElement styleOwner, ISvgRenderer renderer, float opacity, bool forStroke = false)
Parameters
| Type | Name | Description |
|---|---|---|
| SvgVisualElement | styleOwner | The owner SvgVisualElement. |
| ISvgRenderer | renderer | The renderer object. |
| Single | opacity | The opacity of the brush. |
| Boolean | forStroke | Not used. |
Returns
| Type | Description |
|---|---|
| Brush |
Render(ISvgRenderer)
Renders the SvgElement and contents to the specified ISvgRenderer object.
Declaration
protected override void Render(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer object to render to. |
Overrides
| Improve this Doc View SourceToString()
Returns a System.String that represents the current Object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A System.String that represents the current Object. |
Overrides
System.Object.ToString()