[]
The base class for all SVG elements.
public abstract class SvgElement
Initializes a new instance of the SvgElement class.
protected SvgElement(SvgElementType elementType)
elementType
SvgElementTypeGets the collection of child elements.
public SvgElementCollection Children { get; }
Gets or sets a string containing space separated class names of this element.
public string Class { get; set; }
Gets or sets a clipping rectangle.
public SvgClip? Clip { get; set; }
Gets or sets a reference for the 'clip-path' property.
public SvgReference ClipPath { get; set; }
Gets or sets a value indicating the algorithm which is to be used to determine whether a given point is inside a shape for a clipping region created with a graphics element.
public SvgFillRule? ClipRule { get; set; }
Gets or sets an SvgColor providing a potential indirect value, currentColor, for other properties.
public SvgColor? Color { get; set; }
Gets or sets the list of unknown or unsupported attributes.
public List<SvgCustomAttribute> CustomAttributes { get; set; }
Gets or sets a value specifying whether the element (and all its descendents) is a part of the rendering tree.
public SvgDisplay? Display { get; set; }
Gets the owner GcSvgDocument.
public GcSvgDocument Document { get; }
Gets the SVG or non-SVG name of the current element.
public abstract string ElementName { get; }
Gets the type of the current SVG element.
public SvgElementType ElementType { get; }
Gets or sets an SvgPaint for the interior of the given graphical element.
public SvgPaint Fill { get; set; }
Gets or sets a value specifying the opacity of the painting operation used to fill the current object.
public float? FillOpacity { get; set; }
Gets or sets a value specifying which algorithm is to be used to determine what parts of the canvas are included inside the shape.
public SvgFillRule? FillRule { get; set; }
Gets or sets a value specifying the font family.
public List<SvgFontFamily> FontFamily { get; set; }
Gets or sets a value controlling the contextual adjustment of inter-glyph spacing.
public SvgFontKerning? FontKerning { get; set; }
Gets or sets a scale factor applied to the EM unit of the font.
public SvgLength? FontSize { get; set; }
Gets or sets a value that is equal to the x-height of a font divided by the font size.
float.NaN corresponds to 'none' value of the attribute.
public float? FontSizeAdjust { get; set; }
Gets or sets a value specifying the width of the font, selects a normal, condensed, or expanded face from a font family.
public SvgFontStretch? FontStretch { get; set; }
Gets or sets a value selecting normal, italic or oblique font faces.
public SvgFontStyle? FontStyle { get; set; }
Gets or sets a value selecting alternate glyphs used for small or petite capitals or for titling.
public SvgFontVariantCaps? FontVariantCaps { get; set; }
Gets or sets a value that allows control of glyph substitution and sizing in East Asian text.
public SvgFontVariantEastAsian? FontVariantEastAsian { get; set; }
Gets or sets a value that enables or disables ligatures and contextual forms.
public SvgFontVariantLigatures? FontVariantLigatures { get; set; }
Gets or sets a value that specifies control over numerical forms.
public SvgFontVariantNumeric? FontVariantNumeric { get; set; }
Gets or sets a value that enables or disables typographic subscript and superscript glyphs.
public SvgFontVariantPosition? FontVariantPosition { get; set; }
Gets or sets a value specifying the weight of glyphs in the font, their degree of blackness or stroke thickness.
public SvgFontWeight? FontWeight { get; set; }
Gets a value indicating whether the current element has any children. Using this property rather than checking for Children.Count being greater than zero improves performance and reduces memory usage.
public bool HasChildren { get; }
Gets or sets the ID of this element.
public string ID { get; set; }
Gets or sets a hint to the implementation about how to make speed vs. quality tradeoffs as it performs image processing.
public SvgImageRendering? ImageRendering { get; set; }
Gets or sets the primary language for the element's contents and for any of the element's attributes that contain text.
public string Lang { get; set; }
Gets or sets a value specifying additional spacing between adjacent typographic character units.
public SvgSpacing? LetterSpacing { get; set; }
Gets or sets a value for the 'marker-start', 'marker-mid' and 'marker-end' properties.
public SvgReference Marker { get; set; }
Gets or sets a value for the 'marker-end' property.
public SvgReference MarkerEnd { get; set; }
Gets or sets a value for the 'marker-mid' property.
public SvgReference MarkerMid { get; set; }
Gets or sets a value for the 'marker-start' property.
public SvgReference MarkerStart { get; set; }
Gets the namespace of the current element.
public virtual string Namespace { get; }
Gets or sets a value specifying how opaque a given graphical element or container element will be when it is painted to the canvas.
public float? Opacity { get; set; }
Gets or sets a value specifying whether content of a block container element is clipped when it overflows the element's box.
public SvgOverflow? Overflow { get; set; }
Gets or sets a value specifying the order of the paint operations that shapes are rendered with: their fill, their stroke and any markers they might have.
public SvgPaintOrder? PaintOrder { get; set; }
Gets the parent SvgElement.
public SvgElement Parent { get; }
Gets or sets a hint to the implementation about what tradeoffs to make as it renders vector graphics elements.
public SvgShapeRendering? ShapeRendering { get; set; }
Gets or sets an SvgPaint that paints along the outline of the given graphical element.
public SvgPaint Stroke { get; set; }
Gets or sets a dashing pattern to use.
public List<SvgLength> StrokeDashArray { get; set; }
Gets or sets a value specifying the distance into the repeated dash pattern to start the stroke dashing at the beginning of the path.
public SvgLength? StrokeDashOffset { get; set; }
Gets or sets a value specifying the shape to be used at the end of open subpaths when they are stroked.
public SvgStrokeLineCap? StrokeLineCap { get; set; }
Gets or sets a value specifying the shape to be used at the corners of paths or basic shapes when they are stroked.
public SvgStrokeLineJoin? StrokeLineJoin { get; set; }
Gets or sets a limit on the extent of the line join.
public float? StrokeMiterLimit { get; set; }
Gets or sets a value specifying the opacity of the painting operation used to stroke the current object.
public float? StrokeOpacity { get; set; }
Gets or sets the width of the stroke on the current object.
public SvgLength? StrokeWidth { get; set; }
Gets or sets the list of language tags, as defined in BCP 47.
public List<string> SystemLanguage { get; set; }
Gets or sets the object with arbitrary data.
public object Tag { get; set; }
Gets or sets a value specifying how to align a string of pre-formatted text.
public SvgTextAnchor? TextAnchor { get; set; }
Gets or sets the position of text decoration lines, if any is added to the element.
public SvgTextDecorationLine? TextDecorationLine { get; set; }
Gets or sets the style of the line(s) drawn for text decoration.
public SvgTextDecorationStyle? TextDecorationStyle { get; set; }
Gets or sets the inline base direction or directionality of any bidi paragraph.
public SvgTextDirection? TextDirection { get; set; }
Gets or sets the orientation of text in vertical typographic modes.
public SvgTextOrientation? TextOrientation { get; set; }
Gets or sets a hint to the implementation about what tradeoffs to make as it renders text.
public SvgTextRendering? TextRendering { get; set; }
Gets or sets the list of transform functions.
public virtual List<SvgTransform> Transform { get; set; }
Gets or sets a value specifying whether the boxes generated by an element are rendered.
public SvgVisibility? Visibility { get; set; }
Gets or sets a value specifying additional spacing between "words".
public SvgSpacing? WordSpacing { get; set; }
Gets or sets a value specifying whether lines of text are laid out horizontally or vertically and the direction in which blocks progress.
public SvgWritingMode? WritingMode { get; set; }
Gets or sets a value specifying the handling of white-space characters.
public SvgXmlSpace? XmlSpace { get; set; }