Detailed Description

A number optionally associated to a particular element.

Inheritance diagram for Svg.SVGLength:
Svg.ISVGListable

Public Member Functions

 SVGLength (bool readOnly, SVGSerializable list, Css.Value originalValue)
 
void Detach ()
 Detaches this value from a serializable list. More...
 
void Attach (SVGSerializable list)
 Attaches this value to a serializable list. More...
 
void Serialize (System.Text.StringBuilder sb)
 Used when serializing this value. More...
 
- Public Member Functions inherited from Svg.ISVGListable
void Serialize (System.Text.StringBuilder sb)
 

Static Public Member Functions

static ushort GetLengthType (Css.Value value)
 Gets the SVG length type for a particular CSS value. More...
 

Public Attributes

const ushort SVG_LENGTHTYPE_UNKNOWN =0
 Length type constants. More...
 
const ushort SVG_LENGTHTYPE_NUMBER =1
 
const ushort SVG_LENGTHTYPE_PERCENTAGE =2
 
const ushort SVG_LENGTHTYPE_EMS =3
 
const ushort SVG_LENGTHTYPE_EXS =4
 
const ushort SVG_LENGTHTYPE_PX =5
 
const ushort SVG_LENGTHTYPE_CM =6
 
const ushort SVG_LENGTHTYPE_MM =7
 
const ushort SVG_LENGTHTYPE_IN =8
 
const ushort SVG_LENGTHTYPE_PT =9
 
const ushort SVG_LENGTHTYPE_PC =10
 

Properties

float value [get, set]
 The resolved value (in CSS pixels). More...
 
float valueInSpecifiedUnits [get, set]
 The resolved value (in CSS pixels). More...
 
string valueAsString [get, set]
 The value as a string. More...
 
ushort unitType [get]
 The type of units of this length. More...
 

Private Attributes

bool IsReadOnly
 
SVGSerializable List
 
Css.Value rawValue
 

Constructor & Destructor Documentation

Svg.SVGLength.SVGLength ( bool  readOnly,
SVGSerializable  list,
Css.Value  originalValue 
)
inline

Member Function Documentation

void Svg.SVGLength.Attach ( SVGSerializable  list)
inline

Attaches this value to a serializable list.

Implements Svg.ISVGListable.

void Svg.SVGLength.Detach ( )
inline

Detaches this value from a serializable list.

Implements Svg.ISVGListable.

static ushort Svg.SVGLength.GetLengthType ( Css.Value  value)
inlinestatic

Gets the SVG length type for a particular CSS value.

void Svg.SVGLength.Serialize ( System.Text.StringBuilder  sb)
inline

Used when serializing this value.

Member Data Documentation

bool Svg.SVGLength.IsReadOnly
private
SVGSerializable Svg.SVGLength.List
private
Css.Value Svg.SVGLength.rawValue
private
const ushort Svg.SVGLength.SVG_LENGTHTYPE_CM =6
const ushort Svg.SVGLength.SVG_LENGTHTYPE_EMS =3
const ushort Svg.SVGLength.SVG_LENGTHTYPE_EXS =4
const ushort Svg.SVGLength.SVG_LENGTHTYPE_IN =8
const ushort Svg.SVGLength.SVG_LENGTHTYPE_MM =7
const ushort Svg.SVGLength.SVG_LENGTHTYPE_NUMBER =1
const ushort Svg.SVGLength.SVG_LENGTHTYPE_PC =10
const ushort Svg.SVGLength.SVG_LENGTHTYPE_PERCENTAGE =2
const ushort Svg.SVGLength.SVG_LENGTHTYPE_PT =9
const ushort Svg.SVGLength.SVG_LENGTHTYPE_PX =5
const ushort Svg.SVGLength.SVG_LENGTHTYPE_UNKNOWN =0

Length type constants.

Property Documentation

ushort Svg.SVGLength.unitType
get

The type of units of this length.

float Svg.SVGLength.value
getset

The resolved value (in CSS pixels).

string Svg.SVGLength.valueAsString
getset

The value as a string.

float Svg.SVGLength.valueInSpecifiedUnits
getset

The resolved value (in CSS pixels).