1 | using System;
|
---|
2 |
|
---|
3 | namespace SharpVectors.Dom.Svg
|
---|
4 | {
|
---|
5 | /// <summary>
|
---|
6 | /// The SvgTextPositioningElement interface is inherited by text-related interfaces:
|
---|
7 | /// SvgTextElement, SvgTSpanElement, SvgTRefElement and SvgAltGlyphElement.
|
---|
8 | /// </summary>
|
---|
9 | public abstract class SvgTextPositioningElement : SvgTextContentElement, ISvgTextPositioningElement
|
---|
10 | {
|
---|
11 | #region Constructors and Destructor
|
---|
12 |
|
---|
13 | public SvgTextPositioningElement(string prefix, string localname, string ns,
|
---|
14 | SvgDocument doc) : base(prefix, localname, ns, doc)
|
---|
15 | {
|
---|
16 | }
|
---|
17 |
|
---|
18 | #endregion
|
---|
19 |
|
---|
20 | #region Public Properties
|
---|
21 |
|
---|
22 | public ISvgAnimatedLengthList X
|
---|
23 | {
|
---|
24 | get
|
---|
25 | {
|
---|
26 | return new SvgAnimatedLengthList("x", GetAttribute("x"), this,
|
---|
27 | SvgLengthDirection.Horizontal);
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public ISvgAnimatedLengthList Y
|
---|
32 | {
|
---|
33 | get
|
---|
34 | {
|
---|
35 | return new SvgAnimatedLengthList("y", GetAttribute("y"), this,
|
---|
36 | SvgLengthDirection.Vertical);
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | public ISvgAnimatedLengthList Dx
|
---|
41 | {
|
---|
42 | get
|
---|
43 | {
|
---|
44 | return new SvgAnimatedLengthList("dx", GetAttribute("dx"), this,
|
---|
45 | SvgLengthDirection.Horizontal);
|
---|
46 | }
|
---|
47 | }
|
---|
48 |
|
---|
49 | public ISvgAnimatedLengthList Dy
|
---|
50 | {
|
---|
51 | get
|
---|
52 | {
|
---|
53 | return new SvgAnimatedLengthList("dy", GetAttribute("dy"), this,
|
---|
54 | SvgLengthDirection.Vertical);
|
---|
55 | }
|
---|
56 | }
|
---|
57 |
|
---|
58 | public ISvgAnimatedNumberList Rotate
|
---|
59 | {
|
---|
60 | get
|
---|
61 | {
|
---|
62 | return new SvgAnimatedNumberList(GetAttribute("rotate"));
|
---|
63 | }
|
---|
64 | }
|
---|
65 |
|
---|
66 | #endregion
|
---|
67 | }
|
---|
68 | }
|
---|