forked from managed-commons/SvgNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSvgPatternElement.cs
More file actions
77 lines (63 loc) · 2.18 KB
/
SvgPatternElement.cs
File metadata and controls
77 lines (63 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
Copyright © 2003 RiskCare Ltd. All rights reserved.
Copyright © 2010 SvgNet & SvgGdi Bridge Project. All rights reserved.
Copyright © 2015-2024 Rafael Teixeira, Mojmír Němeček, Benjamin Peterson and Other Contributors
Original source code licensed with BSD-2-Clause spirit, treat it thus, see accompanied LICENSE for more
*/
namespace SvgNet.Elements;
/// <summary>
/// Represents an SVG pattern element, which defines a fill pattern by defining a viewport onto a subscene.
/// </summary>
public class SvgPatternElement : SvgStyledTransformedElement {
public SvgPatternElement() {
}
public SvgPatternElement(SvgLength width, SvgLength height, SvgNumList vport) {
Width = width;
Height = height;
ViewBox = vport;
}
public SvgPatternElement(SvgLength x, SvgLength y, SvgLength width, SvgLength height, SvgNumList vport) {
X = x;
Y = y;
Width = width;
Height = height;
ViewBox = vport;
}
public SvgLength Height {
get => (SvgLength)_atts["height"];
set => _atts["height"] = value;
}
public override string Name => "pattern";
public string PatternContentUnits {
get => (string)_atts["patternContentUnits"];
set => _atts["patternContentUnits"] = value;
}
public SvgTransformList PatternTransform {
get => (SvgTransformList)_atts["patternTransform"];
set => _atts["patternTransform"] = value;
}
public string PatternUnits {
get => (string)_atts["patternUnits"];
set => _atts["patternUnits"] = value;
}
public string PreserveAspectRatio {
get => (string)_atts["preserveAspectRatio"];
set => _atts["preserveAspectRatio"] = value;
}
public SvgNumList ViewBox {
get => (SvgNumList)_atts["viewBox"];
set => _atts["viewBox"] = value;
}
public SvgLength Width {
get => (SvgLength)_atts["width"];
set => _atts["width"] = value;
}
public SvgLength X {
get => (SvgLength)_atts["x"];
set => _atts["x"] = value;
}
public SvgLength Y {
get => (SvgLength)_atts["y"];
set => _atts["y"] = value;
}
}