Class XDLSReader
Summary description for XDLSReader.
Inheritance
Namespace: Syncfusion.DocIO.DLS.XML
Assembly: Syncfusion.DocIO.Portable.dll
Syntax
public class XDLSReader : Object, IXDLSAttributeReader, IXDLSContentReader
Constructors
XDLSReader(XmlReader)
Initializes a new instance of the XDLSReader class.
Declaration
public XDLSReader(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The reader. |
Properties
AttributeReader
Gets the attribute reader.
Declaration
public IXDLSAttributeReader AttributeReader { get; }
Property Value
Type | Description |
---|---|
IXDLSAttributeReader | The attribute reader. |
InnerReader
Gets the inner reader.
Declaration
public XmlReader InnerReader { get; }
Property Value
Type | Description |
---|---|
System.Xml.XmlReader | The inner reader. |
NodeType
Gets the type of the node.
Declaration
public XmlNodeType NodeType { get; }
Property Value
Type | Description |
---|---|
System.Xml.XmlNodeType | The type of the node. |
TagName
Gets the name of the tag.
Declaration
public string TagName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the tag. |
Methods
Deserialize(IXDLSSerializable)
Deserializes the specified value.
Declaration
public void Deserialize(IXDLSSerializable value)
Parameters
Type | Name | Description |
---|---|---|
IXDLSSerializable | value | The value. |
GetAttributeValue(String)
Gets the attribute value.
Declaration
public string GetAttributeValue(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.String |
HasAttribute(String)
Determines whether the current node has attribute with specified name.
Declaration
public bool HasAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean | if has attribute with specified name, set to |
ReadBoolean(String)
Reads the boolean.
Declaration
public bool ReadBoolean(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Boolean |
ReadByte(String)
Reads the byte.
Declaration
public byte ReadByte(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Byte |
ReadChildBinaryElement()
Reads binary value.
Declaration
public byte[] ReadChildBinaryElement()
Returns
Type |
---|
System.Byte[] |
ReadChildElement(Object)
Reads the child element.
Declaration
public bool ReadChildElement(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type |
---|
System.Boolean |
ReadChildElement(Type)
Reads the child element.
Declaration
public object ReadChildElement(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type |
---|
System.Object |
ReadChildStringContent()
Reads the content of the child string.
Declaration
public string ReadChildStringContent()
Returns
Type |
---|
System.String |
ReadColor(String)
Reads color from XML.
Declaration
public Color ReadColor(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of attribute. |
Returns
Type | Description |
---|---|
Color | Color structure. |
ReadDouble(String)
Reads the double.
Declaration
public double ReadDouble(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Double |
ReadEnum(String, Type)
Reads the enum.
Declaration
public Enum ReadEnum(string name, Type enumType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Type | enumType | Type of the enum. |
Returns
Type |
---|
System.Enum |
ReadFloat(String)
Reads the float.
Declaration
public float ReadFloat(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Single |
ReadInt(String)
Reads the int.
Declaration
public int ReadInt(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Int32 |
ReadShort(String)
Reads the short.
Declaration
public short ReadShort(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.Int16 |
ReadString(String)
Reads the string.
Declaration
public string ReadString(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type |
---|
System.String |