Interface IAttr
Defines a common interface for SVG attributes.
Inherited Members
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public interface IAttr : IEquatable<IAttr>
Properties
| Edit this page View SourceIsConstant
Gets a value indicating whether the attribute is constant.
Declaration
bool IsConstant { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the name of the attribute.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
ShouldBeSerialized
Gets a value indicating whether the attribute should be serialized.
Declaration
bool ShouldBeSerialized { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This property determines whether the attribute should be included in the serialization process.
Methods
| Edit this page View SourceSetBySerializer(string)
Used by the serializer to set the value of the attribute from an XML string.
Declaration
void SetBySerializer(string xmlString)
Parameters
Type | Name | Description |
---|---|---|
string | xmlString | The XML string to set the value from. |
ToXmlString()
Converts the attribute to an XML string.
Declaration
string ToXmlString()
Returns
Type | Description |
---|---|
string | The attribute as an XML string. |