Svg.SVGListInterface< T > Class Template Reference

Detailed Description

The base interface for SVG lists.

Type Constraints
T :ISVGListable 
Inheritance diagram for Svg.SVGListInterface< T >:
Svg.SVGSerializable Svg.SVGLengthList Svg.SVGNumberList Svg.SVGPointList

Public Member Functions

 SVGListInterface ()
 
 SVGListInterface (bool readOnly)
 
 SVGListInterface (bool readOnly, Css.Value init, Node host, string attr)
 
override void Reserialize ()
 If the list reflects an attrib, this reserialises it. More...
 
void clear ()
 Clears out the list. More...
 
initialize (T newItem)
 Sets up the list with the given object in it. More...
 
getItem (int index)
 
insertItemBefore (T newItem, int index)
 
replaceItem (T newItem, int index)
 Replaces item at the given index with the given item. More...
 
removeItem (int index)
 Removes the item at the given index. More...
 
appendItem (T newItem)
 Adds the item to the list. More...
 

Protected Member Functions

virtual T Create (Css.Value from)
 Creates an instance of the listed type from the given information in a CSS value. More...
 

Properties

int length [get]
 The length of the list. More...
 
int numberOfItems [get]
 The number of items. More...
 
this[int index] [get, set]
 

Private Attributes

List< T > Values =new List<T>()
 The raw values. More...
 

Additional Inherited Members

- Public Attributes inherited from Svg.SVGSerializable
Dom.Node HostNode
 The node being reflected (if any). More...
 
string AttributeName
 The attribute being reflected (if any) in the host node. More...
 
- Protected Attributes inherited from Svg.SVGSerializable
bool IsReadOnly
 Is this list readonly? More...
 

Constructor & Destructor Documentation

Svg.SVGListInterface< T >.SVGListInterface ( )
inline
Svg.SVGListInterface< T >.SVGListInterface ( bool  readOnly)
inline
Svg.SVGListInterface< T >.SVGListInterface ( bool  readOnly,
Css.Value  init,
Node  host,
string  attr 
)
inline

Member Function Documentation

T Svg.SVGListInterface< T >.appendItem ( newItem)
inline

Adds the item to the list.

void Svg.SVGListInterface< T >.clear ( )
inline

Clears out the list.

virtual T Svg.SVGListInterface< T >.Create ( Css.Value  from)
inlineprotectedvirtual

Creates an instance of the listed type from the given information in a CSS value.

Reimplemented in Svg.SVGLengthList, Svg.SVGNumberList, and Svg.SVGPointList.

T Svg.SVGListInterface< T >.getItem ( int  index)
inline
T Svg.SVGListInterface< T >.initialize ( newItem)
inline

Sets up the list with the given object in it.

T Svg.SVGListInterface< T >.insertItemBefore ( newItem,
int  index 
)
inline
T Svg.SVGListInterface< T >.removeItem ( int  index)
inline

Removes the item at the given index.

T Svg.SVGListInterface< T >.replaceItem ( newItem,
int  index 
)
inline

Replaces item at the given index with the given item.

override void Svg.SVGListInterface< T >.Reserialize ( )
inlinevirtual

If the list reflects an attrib, this reserialises it.

Reimplemented from Svg.SVGSerializable.

Member Data Documentation

List<T> Svg.SVGListInterface< T >.Values =new List<T>()
private

The raw values.

Property Documentation

int Svg.SVGListInterface< T >.length
get

The length of the list.

int Svg.SVGListInterface< T >.numberOfItems
get

The number of items.

T Svg.SVGListInterface< T >.this[int index]
getset