|
| 1 | +using ScriptEngine.Machine.Contexts; |
| 2 | +using ScriptEngine.Machine; |
| 3 | +using System.Reflection; |
| 4 | + |
| 5 | +namespace osdf |
| 6 | +{ |
| 7 | + [ContextClass("ДфФон", "DfBackground")] |
| 8 | + public class DfBackground : AutoContext<DfBackground> |
| 9 | + { |
| 10 | + public DfBackground(IValue p1, IValue p2, IValue p3, IValue p4, IValue p5, IValue p6, IValue p7, IValue p8) |
| 11 | + { |
| 12 | + BackgroundColor = p1; |
| 13 | + BackgroundImage = p2; |
| 14 | + BackgroundRepeat = p3; |
| 15 | + BackgroundPosition = p4; |
| 16 | + BackgroundOrigin = p5; |
| 17 | + BackgroundClip = p6; |
| 18 | + BackgroundSize = p7; |
| 19 | + BackgroundAttachment = p8; |
| 20 | + } |
| 21 | + |
| 22 | + public PropertyInfo this[string p1] |
| 23 | + { |
| 24 | + get { return this.GetType().GetProperty(p1); } |
| 25 | + } |
| 26 | + |
| 27 | + private IValue backgroundColor; |
| 28 | + [ContextProperty("ЦветФона", "BackgroundColor")] |
| 29 | + public IValue BackgroundColor |
| 30 | + { |
| 31 | + get { return backgroundColor; } |
| 32 | + set { backgroundColor = value; } |
| 33 | + } |
| 34 | + |
| 35 | + private IValue backgroundImage; |
| 36 | + [ContextProperty("ФоновоеИзображение", "BackgroundImage")] |
| 37 | + public IValue BackgroundImage |
| 38 | + { |
| 39 | + get { return backgroundImage; } |
| 40 | + set { backgroundImage = value; } |
| 41 | + } |
| 42 | + |
| 43 | + private IValue backgroundRepeat; |
| 44 | + [ContextProperty("МозаикаКартинки", "BackgroundRepeat")] |
| 45 | + public IValue BackgroundRepeat |
| 46 | + { |
| 47 | + get { return backgroundRepeat; } |
| 48 | + set { backgroundRepeat = value; } |
| 49 | + } |
| 50 | + |
| 51 | + private IValue backgroundPosition; |
| 52 | + [ContextProperty("ПоложениеКартинки", "BackgroundPosition")] |
| 53 | + public IValue BackgroundPosition |
| 54 | + { |
| 55 | + get { return backgroundPosition; } |
| 56 | + set { backgroundPosition = value; } |
| 57 | + } |
| 58 | + |
| 59 | + private IValue backgroundOrigin; |
| 60 | + [ContextProperty("ОбластьКартинки", "BackgroundOrigin")] |
| 61 | + public IValue BackgroundOrigin |
| 62 | + { |
| 63 | + get { return backgroundOrigin; } |
| 64 | + set { backgroundOrigin = value; } |
| 65 | + } |
| 66 | + |
| 67 | + private IValue backgroundClip; |
| 68 | + [ContextProperty("ОбластьРисования", "BackgroundClip")] |
| 69 | + public IValue BackgroundClip |
| 70 | + { |
| 71 | + get { return backgroundClip; } |
| 72 | + set { backgroundClip = value; } |
| 73 | + } |
| 74 | + |
| 75 | + private IValue backgroundSize; |
| 76 | + [ContextProperty("РазмерКартинки", "BackgroundSize")] |
| 77 | + public IValue BackgroundSize |
| 78 | + { |
| 79 | + get { return backgroundSize; } |
| 80 | + set { backgroundSize = value; } |
| 81 | + } |
| 82 | + |
| 83 | + private IValue backgroundAttachment; |
| 84 | + [ContextProperty("ФоновоеВложение", "BackgroundAttachment")] |
| 85 | + public IValue BackgroundAttachment |
| 86 | + { |
| 87 | + get { return backgroundAttachment; } |
| 88 | + set { backgroundAttachment = value; } |
| 89 | + } |
| 90 | + } |
| 91 | +} |
0 commit comments