Table of Contents

Class SvgElement

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("ac7b67a6-183e-49c1-a823-0ebe40b0db29")]
public class SvgElement : Resource
Inheritance
SvgElement
Inherited Members

Constructors

SvgElement(nint)

public SvgElement(nint nativePtr)

Parameters

nativePtr nint

Properties

Children

Gets all children of this element.

public SvgElement[] Children { get; }

Property Value

SvgElement[]

Document

No documentation.

public SvgDocument Document { get; }

Property Value

SvgDocument

FirstChild

No documentation.

public SvgElement FirstChild { get; }

Property Value

SvgElement

IsTextContent

No documentation.

public RawBool IsTextContent { get; }

Property Value

RawBool

LastChild

No documentation.

public SvgElement LastChild { get; }

Property Value

SvgElement

Parent

No documentation.

public SvgElement Parent { get; }

Property Value

SvgElement

SpecifiedAttributeCount

No documentation.

public int SpecifiedAttributeCount { get; }

Property Value

int

TagName

Gets tag name for this element

public string TagName { get; }

Property Value

string

TagNameLength

No documentation.

public int TagNameLength { get; }

Property Value

int

TextValueLength

No documentation.

public int TextValueLength { get; }

Property Value

int

Methods

AppendChild(SvgElement)

No documentation.

public void AppendChild(SvgElement newChild)

Parameters

newChild SvgElement

No documentation.

CreateChild(string, out SvgElement)

No documentation.

public void CreateChild(string tagName, out SvgElement newChild)

Parameters

tagName string

No documentation.

newChild SvgElement

No documentation.

GetAttributeValue(string, out ExtendMode)

Gets an extend mode attribute

public void GetAttributeValue(string name, out ExtendMode extendMode)

Parameters

name string

Attribute name

extendMode ExtendMode

When this returns , contains the attribute value

GetAttributeValue(string, out FillMode)

Gets a fill mode attribute

public void GetAttributeValue(string name, out FillMode fillMode)

Parameters

name string

Attribute name

fillMode FillMode

When this returns , contains the attribute value

GetAttributeValue(string, SvgAttributePodType, nint, int)

No documentation.

public void GetAttributeValue(string name, SvgAttributePodType type, nint value, int valueSizeInBytes)

Parameters

name string

No documentation.

type SvgAttributePodType

No documentation.

value nint

No documentation.

valueSizeInBytes int

No documentation.

GetAttributeValue(string, SvgAttributeStringType, nint, int)

No documentation.

public void GetAttributeValue(string name, SvgAttributeStringType type, nint value, int valueCount)

Parameters

name string

No documentation.

type SvgAttributeStringType

No documentation.

value nint

No documentation.

valueCount int

No documentation.

GetAttributeValue(string, out SvgDisplay)

Gets a display attribute

public void GetAttributeValue(string name, out SvgDisplay display)

Parameters

name string

Attribute name

display SvgDisplay

When this returns , contains the attribute value

GetAttributeValue(string, out SvgLength)

Gets an svg length attribute

public void GetAttributeValue(string name, out SvgLength length)

Parameters

name string

Attribute name

length SvgLength

When this returns , contains the attribute value

GetAttributeValue(string, out SvgLineCap)

Gets a line cap attribute

public void GetAttributeValue(string name, out SvgLineCap lineCap)

Parameters

name string

Attribute name

lineCap SvgLineCap

When this returns , contains the attribute value

GetAttributeValue(string, out SvgLineJoin)

Gets a line join attribute

public void GetAttributeValue(string name, out SvgLineJoin lineJoin)

Parameters

name string

Attribute name

lineJoin SvgLineJoin

When this returns , contains the attribute value

GetAttributeValue(string, out SvgOverflow)

Gets an overflow attribute

public void GetAttributeValue(string name, out SvgOverflow overflow)

Parameters

name string

Attribute name

overflow SvgOverflow

When this returns , contains the attribute value

GetAttributeValue(string, out SvgPreserveAspectRatio)

Gets a preserve aspect ratio attribute

public void GetAttributeValue(string name, out SvgPreserveAspectRatio preserveAspectRatio)

Parameters

name string

Attribute name

preserveAspectRatio SvgPreserveAspectRatio

When this returns , contains the attribute value

GetAttributeValue(string, out SvgUnitType)

Gets a unit type attribute

public void GetAttributeValue(string name, out SvgUnitType unitType)

Parameters

name string

Attribute name

unitType SvgUnitType

When this returns , contains the attribute value

GetAttributeValue(string, out SvgVisibility)

Gets a visibility attribute

public void GetAttributeValue(string name, out SvgVisibility visibility)

Parameters

name string

Attribute name

visibility SvgVisibility

When this returns , contains the attribute value

GetAttributeValue(string, out RawColor4)

Gets a color attribute

public void GetAttributeValue(string name, out RawColor4 color)

Parameters

name string

Attribute name

color RawColor4

When this returns , contains the attribute value

GetAttributeValue(string, out RawMatrix3x2)

Gets a transform attribute

public void GetAttributeValue(string name, out RawMatrix3x2 matrix)

Parameters

name string

Attribute name

matrix RawMatrix3x2

When this returns , contains the attribute value

GetAttributeValue(string, Guid, out nint)

No documentation.

public void GetAttributeValue(string name, Guid riid, out nint value)

Parameters

name string

No documentation.

riid Guid

No documentation.

value nint

No documentation.

GetAttributeValue(string, out float)

Gets a float attribute

public void GetAttributeValue(string name, out float value)

Parameters

name string

Attribute name

value float

When this returns , contains the attribute value

GetAttributeValueLength(string, SvgAttributeStringType, out int)

No documentation.

public void GetAttributeValueLength(string name, SvgAttributeStringType type, out int valueLength)

Parameters

name string

No documentation.

type SvgAttributeStringType

No documentation.

valueLength int

No documentation.

GetAttributeValue<T>(string)

Gets an attribute from a type id

public T GetAttributeValue<T>(string name) where T : SvgAttribute

Parameters

name string

Attribute name

Returns

T

Attribute instance

Type Parameters

T

Attribute type, must inherit from SvgAttribute

GetNextChild(SvgElement, out SvgElement)

No documentation.

public void GetNextChild(SvgElement referenceChild, out SvgElement nextChild)

Parameters

referenceChild SvgElement

No documentation.

nextChild SvgElement

No documentation.

GetPreviousChild(SvgElement, out SvgElement)

No documentation.

public void GetPreviousChild(SvgElement referenceChild, out SvgElement reviousChildRef)

Parameters

referenceChild SvgElement

No documentation.

reviousChildRef SvgElement

No documentation.

GetSpecifiedAttributeName(int, nint, int, out RawBool)

No documentation.

public void GetSpecifiedAttributeName(int index, nint name, int nameCount, out RawBool inherited)

Parameters

index int

No documentation.

name nint

No documentation.

nameCount int

No documentation.

inherited RawBool

No documentation.

GetSpecifiedAttributeNameLength(int, out int, out RawBool)

No documentation.

public void GetSpecifiedAttributeNameLength(int index, out int nameLength, out RawBool inherited)

Parameters

index int

No documentation.

nameLength int

No documentation.

inherited RawBool

No documentation.

GetTagName(nint, int)

No documentation.

public void GetTagName(nint name, int nameCount)

Parameters

name nint

No documentation.

nameCount int

No documentation.

GetTextValue(nint, int)

No documentation.

public void GetTextValue(nint name, int nameCount)

Parameters

name nint

No documentation.

nameCount int

No documentation.

HasChildren()

No documentation.

public RawBool HasChildren()

Returns

RawBool

No documentation.

InsertChildBefore(SvgElement, SvgElement)

No documentation.

public void InsertChildBefore(SvgElement newChild, SvgElement referenceChild)

Parameters

newChild SvgElement

No documentation.

referenceChild SvgElement

No documentation.

IsAttributeSpecified(string, out RawBool)

No documentation.

public RawBool IsAttributeSpecified(string name, out RawBool inherited)

Parameters

name string

No documentation.

inherited RawBool

No documentation.

Returns

RawBool

No documentation.

RemoveAttribute(string)

No documentation.

public void RemoveAttribute(string name)

Parameters

name string

No documentation.

RemoveChild(SvgElement)

No documentation.

public void RemoveChild(SvgElement oldChild)

Parameters

oldChild SvgElement

No documentation.

ReplaceChild(SvgElement, SvgElement)

No documentation.

public void ReplaceChild(SvgElement newChild, SvgElement oldChild)

Parameters

newChild SvgElement

No documentation.

oldChild SvgElement

No documentation.

SetAttributeValue(string, ExtendMode)

Sets extend mode attribute

public void SetAttributeValue(string name, ExtendMode extendMode)

Parameters

name string

Attribute name

extendMode ExtendMode

New extend mode

SetAttributeValue(string, FillMode)

Sets fill mode attribute

public void SetAttributeValue(string name, FillMode fillMode)

Parameters

name string

Attribute name

fillMode FillMode

New fill mode

SetAttributeValue(string, SvgAttribute)

No documentation.

public void SetAttributeValue(string name, SvgAttribute value)

Parameters

name string

No documentation.

value SvgAttribute

No documentation.

SetAttributeValue(string, SvgAttributePodType, nint, int)

No documentation.

public void SetAttributeValue(string name, SvgAttributePodType type, nint value, int valueSizeInBytes)

Parameters

name string

No documentation.

type SvgAttributePodType

No documentation.

value nint

No documentation.

valueSizeInBytes int

No documentation.

SetAttributeValue(string, SvgAttributeStringType, string)

No documentation.

public void SetAttributeValue(string name, SvgAttributeStringType type, string value)

Parameters

name string

No documentation.

type SvgAttributeStringType

No documentation.

value string

No documentation.

SetAttributeValue(string, SvgDisplay)

Sets display mode attribute

public void SetAttributeValue(string name, SvgDisplay display)

Parameters

name string

Attribute name

display SvgDisplay

New svg display

SetAttributeValue(string, SvgLength)

Sets length attribute

public void SetAttributeValue(string name, SvgLength length)

Parameters

name string

Attribute name

length SvgLength

New length

SetAttributeValue(string, SvgLineCap)

Sets line cap attribute

public void SetAttributeValue(string name, SvgLineCap lineCap)

Parameters

name string

Attribute name

lineCap SvgLineCap

New svg line cap

SetAttributeValue(string, SvgLineJoin)

Sets line join attribute

public void SetAttributeValue(string name, SvgLineJoin lineJoin)

Parameters

name string

Attribute name

lineJoin SvgLineJoin

New svg line join

SetAttributeValue(string, SvgOverflow)

public void SetAttributeValue(string name, SvgOverflow overflow)

Parameters

name string
overflow SvgOverflow

SetAttributeValue(string, SvgPreserveAspectRatio)

public void SetAttributeValue(string name, SvgPreserveAspectRatio preserveAspectRatio)

Parameters

name string
preserveAspectRatio SvgPreserveAspectRatio

SetAttributeValue(string, SvgUnitType)

Sets unit type attribute

public void SetAttributeValue(string name, SvgUnitType unitType)

Parameters

name string

Attribute name

unitType SvgUnitType

New unit type

SetAttributeValue(string, SvgVisibility)

Sets visibility attribute

public void SetAttributeValue(string name, SvgVisibility visibility)

Parameters

name string

Attribute name

visibility SvgVisibility

New svg visibility

SetAttributeValue(string, RawColor4)

Sets color attribute

public void SetAttributeValue(string name, RawColor4 color)

Parameters

name string

Attribute name

color RawColor4

New color

SetAttributeValue(string, RawMatrix3x2)

Sets transform attribute

public void SetAttributeValue(string name, RawMatrix3x2 matrix)

Parameters

name string

Attribute name

matrix RawMatrix3x2

New transform

SetAttributeValue(string, float)

Sets float attribute

public void SetAttributeValue(string name, float value)

Parameters

name string

Attribute name

value float

New valuee

SetTextValue(string, int)

No documentation.

public void SetTextValue(string name, int nameCount)

Parameters

name string

No documentation.

nameCount int

No documentation.

Operators

explicit operator SvgElement(nint)

public static explicit operator SvgElement(nint nativePtr)

Parameters

nativePtr nint

Returns

SvgElement