[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgElement

Class SvgElement

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

The base class for all SVG elements.

public abstract class SvgElement
Inheritance
SvgElement
Derived
Inherited Members

Constructors

SvgElement(SvgElementType)

Initializes a new instance of the SvgElement class.

protected SvgElement(SvgElementType elementType)

Parameters

elementType SvgElementType

Properties

Children

Gets the collection of child elements.

public SvgElementCollection Children { get; }

Property Value

SvgElementCollection

Class

Gets or sets a string containing space separated class names of this element.

public string Class { get; set; }

Property Value

string

Clip

Gets or sets a clipping rectangle.

public SvgClip? Clip { get; set; }

Property Value

SvgClip?

ClipPath

Gets or sets a reference for the 'clip-path' property.

public SvgReference ClipPath { get; set; }

Property Value

SvgReference

ClipRule

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; }

Property Value

SvgFillRule?

Color

Gets or sets an SvgColor providing a potential indirect value, currentColor, for other properties.

public SvgColor? Color { get; set; }

Property Value

SvgColor?

CustomAttributes

Gets or sets the list of unknown or unsupported attributes.

public List<SvgCustomAttribute> CustomAttributes { get; set; }

Property Value

List<SvgCustomAttribute>

Display

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; }

Property Value

SvgDisplay?

Document

Gets the owner GcSvgDocument.

public GcSvgDocument Document { get; }

Property Value

GcSvgDocument

ElementName

Gets the SVG or non-SVG name of the current element.

public abstract string ElementName { get; }

Property Value

string

ElementType

Gets the type of the current SVG element.

public SvgElementType ElementType { get; }

Property Value

SvgElementType

Fill

Gets or sets an SvgPaint for the interior of the given graphical element.

public SvgPaint Fill { get; set; }

Property Value

SvgPaint

FillOpacity

Gets or sets a value specifying the opacity of the painting operation used to fill the current object.

public float? FillOpacity { get; set; }

Property Value

float?

FillRule

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; }

Property Value

SvgFillRule?

FontFamily

Gets or sets a value specifying the font family.

public List<SvgFontFamily> FontFamily { get; set; }

Property Value

List<SvgFontFamily>

FontKerning

Gets or sets a value controlling the contextual adjustment of inter-glyph spacing.

public SvgFontKerning? FontKerning { get; set; }

Property Value

SvgFontKerning?

FontSize

Gets or sets a scale factor applied to the EM unit of the font.

public SvgLength? FontSize { get; set; }

Property Value

SvgLength?

FontSizeAdjust

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; }

Property Value

float?

FontStretch

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; }

Property Value

SvgFontStretch?

FontStyle

Gets or sets a value selecting normal, italic or oblique font faces.

public SvgFontStyle? FontStyle { get; set; }

Property Value

SvgFontStyle?

FontVariantCaps

Gets or sets a value selecting alternate glyphs used for small or petite capitals or for titling.

public SvgFontVariantCaps? FontVariantCaps { get; set; }

Property Value

SvgFontVariantCaps?

FontVariantEastAsian

Gets or sets a value that allows control of glyph substitution and sizing in East Asian text.

public SvgFontVariantEastAsian? FontVariantEastAsian { get; set; }

Property Value

SvgFontVariantEastAsian?

FontVariantLigatures

Gets or sets a value that enables or disables ligatures and contextual forms.

public SvgFontVariantLigatures? FontVariantLigatures { get; set; }

Property Value

SvgFontVariantLigatures?

FontVariantNumeric

Gets or sets a value that specifies control over numerical forms.

public SvgFontVariantNumeric? FontVariantNumeric { get; set; }

Property Value

SvgFontVariantNumeric?

FontVariantPosition

Gets or sets a value that enables or disables typographic subscript and superscript glyphs.

public SvgFontVariantPosition? FontVariantPosition { get; set; }

Property Value

SvgFontVariantPosition?

FontWeight

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; }

Property Value

SvgFontWeight?

HasChildren

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; }

Property Value

bool

ID

Gets or sets the ID of this element.

public string ID { get; set; }

Property Value

string

ImageRendering

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; }

Property Value

SvgImageRendering?

Lang

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; }

Property Value

string

LetterSpacing

Gets or sets a value specifying additional spacing between adjacent typographic character units.

public SvgSpacing? LetterSpacing { get; set; }

Property Value

SvgSpacing?

Marker

Gets or sets a value for the 'marker-start', 'marker-mid' and 'marker-end' properties.

public SvgReference Marker { get; set; }

Property Value

SvgReference

MarkerEnd

Gets or sets a value for the 'marker-end' property.

public SvgReference MarkerEnd { get; set; }

Property Value

SvgReference

MarkerMid

Gets or sets a value for the 'marker-mid' property.

public SvgReference MarkerMid { get; set; }

Property Value

SvgReference

MarkerStart

Gets or sets a value for the 'marker-start' property.

public SvgReference MarkerStart { get; set; }

Property Value

SvgReference

Namespace

Gets the namespace of the current element.

public virtual string Namespace { get; }

Property Value

string

Opacity

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; }

Property Value

float?

Overflow

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; }

Property Value

SvgOverflow?

PaintOrder

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; }

Property Value

SvgPaintOrder?

Parent

Gets the parent SvgElement.

public SvgElement Parent { get; }

Property Value

SvgElement

ShapeRendering

Gets or sets a hint to the implementation about what tradeoffs to make as it renders vector graphics elements.

public SvgShapeRendering? ShapeRendering { get; set; }

Property Value

SvgShapeRendering?

Stroke

Gets or sets an SvgPaint that paints along the outline of the given graphical element.

public SvgPaint Stroke { get; set; }

Property Value

SvgPaint

StrokeDashArray

Gets or sets a dashing pattern to use.

public List<SvgLength> StrokeDashArray { get; set; }

Property Value

List<SvgLength>

StrokeDashOffset

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; }

Property Value

SvgLength?

StrokeLineCap

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; }

Property Value

SvgStrokeLineCap?

StrokeLineJoin

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; }

Property Value

SvgStrokeLineJoin?

StrokeMiterLimit

Gets or sets a limit on the extent of the line join.

public float? StrokeMiterLimit { get; set; }

Property Value

float?

StrokeOpacity

Gets or sets a value specifying the opacity of the painting operation used to stroke the current object.

public float? StrokeOpacity { get; set; }

Property Value

float?

StrokeWidth

Gets or sets the width of the stroke on the current object.

public SvgLength? StrokeWidth { get; set; }

Property Value

SvgLength?

SystemLanguage

Gets or sets the list of language tags, as defined in BCP 47.

public List<string> SystemLanguage { get; set; }

Property Value

List<string>

Tag

Gets or sets the object with arbitrary data.

public object Tag { get; set; }

Property Value

object

TextAnchor

Gets or sets a value specifying how to align a string of pre-formatted text.

public SvgTextAnchor? TextAnchor { get; set; }

Property Value

SvgTextAnchor?

TextDecorationLine

Gets or sets the position of text decoration lines, if any is added to the element.

public SvgTextDecorationLine? TextDecorationLine { get; set; }

Property Value

SvgTextDecorationLine?

TextDecorationStyle

Gets or sets the style of the line(s) drawn for text decoration.

public SvgTextDecorationStyle? TextDecorationStyle { get; set; }

Property Value

SvgTextDecorationStyle?

TextDirection

Gets or sets the inline base direction or directionality of any bidi paragraph.

public SvgTextDirection? TextDirection { get; set; }

Property Value

SvgTextDirection?

TextOrientation

Gets or sets the orientation of text in vertical typographic modes.

public SvgTextOrientation? TextOrientation { get; set; }

Property Value

SvgTextOrientation?

TextRendering

Gets or sets a hint to the implementation about what tradeoffs to make as it renders text.

public SvgTextRendering? TextRendering { get; set; }

Property Value

SvgTextRendering?

Transform

Gets or sets the list of transform functions.

public virtual List<SvgTransform> Transform { get; set; }

Property Value

List<SvgTransform>

Visibility

Gets or sets a value specifying whether the boxes generated by an element are rendered.

public SvgVisibility? Visibility { get; set; }

Property Value

SvgVisibility?

WordSpacing

Gets or sets a value specifying additional spacing between "words".

public SvgSpacing? WordSpacing { get; set; }

Property Value

SvgSpacing?

WritingMode

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; }

Property Value

SvgWritingMode?

XmlSpace

Gets or sets a value specifying the handling of white-space characters.

public SvgXmlSpace? XmlSpace { get; set; }

Property Value

SvgXmlSpace?