forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColor.cs
More file actions
2046 lines (1676 loc) · 61.3 KB
/
Color.cs
File metadata and controls
2046 lines (1676 loc) · 61.3 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using ScriptEngine.Machine.Contexts;
using ScriptEngine.Machine;
using System.Reflection;
namespace osf
{
public class Color
{
public ClColor dll_obj;
public System.Drawing.Color M_Color;
public Color()
{
M_Color = System.Drawing.Color.Empty;
}
public Color(System.Drawing.Color p1)
{
M_Color = p1;
}
//Свойства============================================================
public Color(osf.Color p1)
{
M_Color = p1.M_Color;
}
//Свойства============================================================
public int A
{
get { return M_Color.A; }
}
public osf.Color ActiveBorder
{
get { return new Color(System.Drawing.Color.FromName("ActiveBorder")); }
}
public osf.Color ActiveCaption
{
get { return new Color(System.Drawing.Color.FromName("ActiveCaption")); }
}
public osf.Color ActiveCaptionText
{
get { return new Color(System.Drawing.Color.FromName("ActiveCaptionText")); }
}
public osf.Color AliceBlue
{
get { return new Color(System.Drawing.Color.FromName("AliceBlue")); }
}
public osf.Color AntiqueWhite
{
get { return new Color(System.Drawing.Color.FromName("AntiqueWhite")); }
}
public osf.Color AppWorkspace
{
get { return new Color(System.Drawing.Color.FromName("AppWorkspace")); }
}
public osf.Color Aqua
{
get { return new Color(System.Drawing.Color.FromName("Aqua")); }
}
public osf.Color Aquamarine
{
get { return new Color(System.Drawing.Color.FromName("Aquamarine")); }
}
public osf.Color Azure
{
get { return new Color(System.Drawing.Color.FromName("Azure")); }
}
public int B
{
get { return Convert.ToInt32(M_Color.B); }
}
public osf.Color Beige
{
get { return new Color(System.Drawing.Color.FromName("Beige")); }
}
public osf.Color Bisque
{
get { return new Color(System.Drawing.Color.FromName("Bisque")); }
}
public osf.Color Black
{
get { return new Color(System.Drawing.Color.FromName("Black")); }
}
public osf.Color BlanchedAlmond
{
get { return new Color(System.Drawing.Color.FromName("BlanchedAlmond")); }
}
public osf.Color Blue
{
get { return new Color(System.Drawing.Color.FromName("Blue")); }
}
public osf.Color BlueViolet
{
get { return new Color(System.Drawing.Color.FromName("BlueViolet")); }
}
public osf.Color Brown
{
get { return new Color(System.Drawing.Color.FromName("Brown")); }
}
public osf.Color BurlyWood
{
get { return new Color(System.Drawing.Color.FromName("BurlyWood")); }
}
public osf.Color CadetBlue
{
get { return new Color(System.Drawing.Color.FromName("CadetBlue")); }
}
public osf.Color Chartreuse
{
get { return new Color(System.Drawing.Color.FromName("Chartreuse")); }
}
public osf.Color Chocolate
{
get { return new Color(System.Drawing.Color.FromName("Chocolate")); }
}
public osf.Color Control
{
get { return new Color(System.Drawing.Color.FromName("Control")); }
}
public osf.Color ControlDark
{
get { return new Color(System.Drawing.Color.FromName("ControlDark")); }
}
public osf.Color ControlDarkDark
{
get { return new Color(System.Drawing.Color.FromName("ControlDarkDark")); }
}
public osf.Color ControlLight
{
get { return new Color(System.Drawing.Color.FromName("ControlLight")); }
}
public osf.Color ControlLightLight
{
get { return new Color(System.Drawing.Color.FromName("ControlLightLight")); }
}
public osf.Color ControlText
{
get { return new Color(System.Drawing.Color.FromName("ControlText")); }
}
public osf.Color Coral
{
get { return new Color(System.Drawing.Color.FromName("Coral")); }
}
public osf.Color CornflowerBlue
{
get { return new Color(System.Drawing.Color.FromName("CornflowerBlue")); }
}
public osf.Color Cornsilk
{
get { return new Color(System.Drawing.Color.FromName("Cornsilk")); }
}
public osf.Color Crimson
{
get { return new Color(System.Drawing.Color.FromName("Crimson")); }
}
public osf.Color Cyan
{
get { return new Color(System.Drawing.Color.FromName("Cyan")); }
}
public osf.Color DarkBlue
{
get { return new Color(System.Drawing.Color.FromName("DarkBlue")); }
}
public osf.Color DarkCyan
{
get { return new Color(System.Drawing.Color.FromName("DarkCyan")); }
}
public osf.Color DarkGoldenrod
{
get { return new Color(System.Drawing.Color.FromName("DarkGoldenrod")); }
}
public osf.Color DarkGray
{
get { return new Color(System.Drawing.Color.FromName("DarkGray")); }
}
public osf.Color DarkGreen
{
get { return new Color(System.Drawing.Color.FromName("DarkGreen")); }
}
public osf.Color DarkKhaki
{
get { return new Color(System.Drawing.Color.FromName("DarkKhaki")); }
}
public osf.Color DarkMagenta
{
get { return new Color(System.Drawing.Color.FromName("DarkMagenta")); }
}
public osf.Color DarkOliveGreen
{
get { return new Color(System.Drawing.Color.FromName("DarkOliveGreen")); }
}
public osf.Color DarkOrange
{
get { return new Color(System.Drawing.Color.FromName("DarkOrange")); }
}
public osf.Color DarkOrchid
{
get { return new Color(System.Drawing.Color.FromName("DarkOrchid")); }
}
public osf.Color DarkRed
{
get { return new Color(System.Drawing.Color.FromName("DarkRed")); }
}
public osf.Color DarkSalmon
{
get { return new Color(System.Drawing.Color.FromName("DarkSalmon")); }
}
public osf.Color DarkSeaGreen
{
get { return new Color(System.Drawing.Color.FromName("DarkSeaGreen")); }
}
public osf.Color DarkSlateBlue
{
get { return new Color(System.Drawing.Color.FromName("DarkSlateBlue")); }
}
public osf.Color DarkSlateGray
{
get { return new Color(System.Drawing.Color.FromName("DarkSlateGray")); }
}
public osf.Color DarkTurquoise
{
get { return new Color(System.Drawing.Color.FromName("DarkTurquoise")); }
}
public osf.Color DarkViolet
{
get { return new Color(System.Drawing.Color.FromName("DarkViolet")); }
}
public osf.Color DeepPink
{
get { return new Color(System.Drawing.Color.FromName("DeepPink")); }
}
public osf.Color DeepSkyBlue
{
get { return new Color(System.Drawing.Color.FromName("DeepSkyBlue")); }
}
public osf.Color Desktop
{
get { return new Color(System.Drawing.Color.FromName("Desktop")); }
}
public osf.Color DimGray
{
get { return new Color(System.Drawing.Color.FromName("DimGray")); }
}
public osf.Color DodgerBlue
{
get { return new Color(System.Drawing.Color.FromName("DodgerBlue")); }
}
public osf.Color Firebrick
{
get { return new Color(System.Drawing.Color.FromName("Firebrick")); }
}
public osf.Color FloralWhite
{
get { return new Color(System.Drawing.Color.FromName("FloralWhite")); }
}
public osf.Color ForestGreen
{
get { return new Color(System.Drawing.Color.FromName("ForestGreen")); }
}
public osf.Color Fuchsia
{
get { return new Color(System.Drawing.Color.FromName("Fuchsia")); }
}
public int G
{
get { return Convert.ToInt32(M_Color.G); }
}
public osf.Color Gainsboro
{
get { return new Color(System.Drawing.Color.FromName("Gainsboro")); }
}
public osf.Color GhostWhite
{
get { return new Color(System.Drawing.Color.FromName("GhostWhite")); }
}
public osf.Color Gold
{
get { return new Color(System.Drawing.Color.FromName("Gold")); }
}
public osf.Color Goldenrod
{
get { return new Color(System.Drawing.Color.FromName("Goldenrod")); }
}
public osf.Color Gray
{
get { return new Color(System.Drawing.Color.FromName("Gray")); }
}
public osf.Color GrayText
{
get { return new Color(System.Drawing.Color.FromName("GrayText")); }
}
public osf.Color Green
{
get { return new Color(System.Drawing.Color.FromName("Green")); }
}
public osf.Color GreenYellow
{
get { return new Color(System.Drawing.Color.FromName("GreenYellow")); }
}
public osf.Color Highlight
{
get { return new Color(System.Drawing.Color.FromName("Highlight")); }
}
public osf.Color HighlightText
{
get { return new Color(System.Drawing.Color.FromName("HighlightText")); }
}
public osf.Color Honeydew
{
get { return new Color(System.Drawing.Color.FromName("Honeydew")); }
}
public osf.Color HotPink
{
get { return new Color(System.Drawing.Color.FromName("HotPink")); }
}
public osf.Color HotTrack
{
get { return new Color(System.Drawing.Color.FromName("HotTrack")); }
}
public osf.Color InactiveBorder
{
get { return new Color(System.Drawing.Color.FromName("InactiveBorder")); }
}
public osf.Color InactiveCaption
{
get { return new Color(System.Drawing.Color.FromName("InactiveCaption")); }
}
public osf.Color InactiveCaptionText
{
get { return new Color(System.Drawing.Color.FromName("InactiveCaptionText")); }
}
public osf.Color IndianRed
{
get { return new Color(System.Drawing.Color.FromName("IndianRed")); }
}
public osf.Color Indigo
{
get { return new Color(System.Drawing.Color.FromName("Indigo")); }
}
public osf.Color Info
{
get { return new Color(System.Drawing.Color.FromName("Info")); }
}
public osf.Color InfoText
{
get { return new Color(System.Drawing.Color.FromName("InfoText")); }
}
public bool IsEmpty
{
get { return M_Color.IsEmpty; }
}
public osf.Color Ivory
{
get { return new Color(System.Drawing.Color.FromName("Ivory")); }
}
public osf.Color Khaki
{
get { return new Color(System.Drawing.Color.FromName("Khaki")); }
}
public osf.Color Lavender
{
get { return new Color(System.Drawing.Color.FromName("Lavender")); }
}
public osf.Color LavenderBlush
{
get { return new Color(System.Drawing.Color.FromName("LavenderBlush")); }
}
public osf.Color LawnGreen
{
get { return new Color(System.Drawing.Color.FromName("LawnGreen")); }
}
public osf.Color LemonChiffon
{
get { return new Color(System.Drawing.Color.FromName("LemonChiffon")); }
}
public osf.Color LightBlue
{
get { return new Color(System.Drawing.Color.FromName("LightBlue")); }
}
public osf.Color LightCoral
{
get { return new Color(System.Drawing.Color.FromName("LightCoral")); }
}
public osf.Color LightCyan
{
get { return new Color(System.Drawing.Color.FromName("LightCyan")); }
}
public osf.Color LightGoldenrodYellow
{
get { return new Color(System.Drawing.Color.FromName("LightGoldenrodYellow")); }
}
public osf.Color LightGray
{
get { return new Color(System.Drawing.Color.FromName("LightGray")); }
}
public osf.Color LightGreen
{
get { return new Color(System.Drawing.Color.FromName("LightGreen")); }
}
public osf.Color LightPink
{
get { return new Color(System.Drawing.Color.FromName("LightPink")); }
}
public osf.Color LightSalmon
{
get { return new Color(System.Drawing.Color.FromName("LightSalmon")); }
}
public osf.Color LightSeaGreen
{
get { return new Color(System.Drawing.Color.FromName("LightSeaGreen")); }
}
public osf.Color LightSkyBlue
{
get { return new Color(System.Drawing.Color.FromName("LightSkyBlue")); }
}
public osf.Color LightSlateGray
{
get { return new Color(System.Drawing.Color.FromName("LightSlateGray")); }
}
public osf.Color LightSteelBlue
{
get { return new Color(System.Drawing.Color.FromName("LightSteelBlue")); }
}
public osf.Color LightYellow
{
get { return new Color(System.Drawing.Color.FromName("LightYellow")); }
}
public osf.Color Lime
{
get { return new Color(System.Drawing.Color.FromName("Lime")); }
}
public osf.Color LimeGreen
{
get { return new Color(System.Drawing.Color.FromName("LimeGreen")); }
}
public osf.Color Linen
{
get { return new Color(System.Drawing.Color.FromName("Linen")); }
}
public osf.Color Magenta
{
get { return new Color(System.Drawing.Color.FromName("Magenta")); }
}
public osf.Color Maroon
{
get { return new Color(System.Drawing.Color.FromName("Maroon")); }
}
public osf.Color MediumAquamarine
{
get { return new Color(System.Drawing.Color.FromName("MediumAquamarine")); }
}
public osf.Color MediumBlue
{
get { return new Color(System.Drawing.Color.FromName("MediumBlue")); }
}
public osf.Color MediumOrchid
{
get { return new Color(System.Drawing.Color.FromName("MediumOrchid")); }
}
public osf.Color MediumPurple
{
get { return new Color(System.Drawing.Color.FromName("MediumPurple")); }
}
public osf.Color MediumSeaGreen
{
get { return new Color(System.Drawing.Color.FromName("MediumSeaGreen")); }
}
public osf.Color MediumSlateBlue
{
get { return new Color(System.Drawing.Color.FromName("MediumSlateBlue")); }
}
public osf.Color MediumSpringGreen
{
get { return new Color(System.Drawing.Color.FromName("MediumSpringGreen")); }
}
public osf.Color MediumTurquoise
{
get { return new Color(System.Drawing.Color.FromName("MediumTurquoise")); }
}
public osf.Color MediumVioletRed
{
get { return new Color(System.Drawing.Color.FromName("MediumVioletRed")); }
}
public osf.Color Menu
{
get { return new Color(System.Drawing.Color.FromName("Menu")); }
}
public osf.Color MenuText
{
get { return new Color(System.Drawing.Color.FromName("MenuText")); }
}
public osf.Color MidnightBlue
{
get { return new Color(System.Drawing.Color.FromName("MidnightBlue")); }
}
public osf.Color MintCream
{
get { return new Color(System.Drawing.Color.FromName("MintCream")); }
}
public osf.Color MistyRose
{
get { return new Color(System.Drawing.Color.FromName("MistyRose")); }
}
public osf.Color Moccasin
{
get { return new Color(System.Drawing.Color.FromName("Moccasin")); }
}
public string Name
{
get { return M_Color.Name; }
}
public osf.Color NavajoWhite
{
get { return new Color(System.Drawing.Color.FromName("NavajoWhite")); }
}
public osf.Color Navy
{
get { return new Color(System.Drawing.Color.FromName("Navy")); }
}
public osf.Color OldLace
{
get { return new Color(System.Drawing.Color.FromName("OldLace")); }
}
public osf.Color Olive
{
get { return new Color(System.Drawing.Color.FromName("Olive")); }
}
public osf.Color OliveDrab
{
get { return new Color(System.Drawing.Color.FromName("OliveDrab")); }
}
public osf.Color Orange
{
get { return new Color(System.Drawing.Color.FromName("Orange")); }
}
public osf.Color OrangeRed
{
get { return new Color(System.Drawing.Color.FromName("OrangeRed")); }
}
public osf.Color Orchid
{
get { return new Color(System.Drawing.Color.FromName("Orchid")); }
}
public osf.Color PaleGoldenrod
{
get { return new Color(System.Drawing.Color.FromName("PaleGoldenrod")); }
}
public osf.Color PaleGreen
{
get { return new Color(System.Drawing.Color.FromName("PaleGreen")); }
}
public osf.Color PaleTurquoise
{
get { return new Color(System.Drawing.Color.FromName("PaleTurquoise")); }
}
public osf.Color PaleVioletRed
{
get { return new Color(System.Drawing.Color.FromName("PaleVioletRed")); }
}
public osf.Color PapayaWhip
{
get { return new Color(System.Drawing.Color.FromName("PapayaWhip")); }
}
public osf.Color PeachPuff
{
get { return new Color(System.Drawing.Color.FromName("PeachPuff")); }
}
public osf.Color Peru
{
get { return new Color(System.Drawing.Color.FromName("Peru")); }
}
public osf.Color Pink
{
get { return new Color(System.Drawing.Color.FromName("Pink")); }
}
public osf.Color Plum
{
get { return new Color(System.Drawing.Color.FromName("Plum")); }
}
public osf.Color PowderBlue
{
get { return new Color(System.Drawing.Color.FromName("PowderBlue")); }
}
public osf.Color Purple
{
get { return new Color(System.Drawing.Color.FromName("Purple")); }
}
public int R
{
get { return Convert.ToInt32(M_Color.R); }
}
public osf.Color Red
{
get { return new Color(System.Drawing.Color.FromName("Red")); }
}
public osf.Color RosyBrown
{
get { return new Color(System.Drawing.Color.FromName("RosyBrown")); }
}
public osf.Color RoyalBlue
{
get { return new Color(System.Drawing.Color.FromName("RoyalBlue")); }
}
public osf.Color SaddleBrown
{
get { return new Color(System.Drawing.Color.FromName("SaddleBrown")); }
}
public osf.Color Salmon
{
get { return new Color(System.Drawing.Color.FromName("Salmon")); }
}
public osf.Color SandyBrown
{
get { return new Color(System.Drawing.Color.FromName("SandyBrown")); }
}
public osf.Color ScrollBar
{
get { return new Color(System.Drawing.Color.FromName("ScrollBar")); }
}
public osf.Color SeaGreen
{
get { return new Color(System.Drawing.Color.FromName("SeaGreen")); }
}
public osf.Color SeaShell
{
get { return new Color(System.Drawing.Color.FromName("SeaShell")); }
}
public osf.Color Sienna
{
get { return new Color(System.Drawing.Color.FromName("Sienna")); }
}
public osf.Color Silver
{
get { return new Color(System.Drawing.Color.FromName("Silver")); }
}
public osf.Color SkyBlue
{
get { return new Color(System.Drawing.Color.FromName("SkyBlue")); }
}
public osf.Color SlateBlue
{
get { return new Color(System.Drawing.Color.FromName("SlateBlue")); }
}
public osf.Color SlateGray
{
get { return new Color(System.Drawing.Color.FromName("SlateGray")); }
}
public osf.Color Snow
{
get { return new Color(System.Drawing.Color.FromName("Snow")); }
}
public osf.Color SpringGreen
{
get { return new Color(System.Drawing.Color.FromName("SpringGreen")); }
}
public osf.Color SteelBlue
{
get { return new Color(System.Drawing.Color.FromName("SteelBlue")); }
}
public osf.Color Tan
{
get { return new Color(System.Drawing.Color.FromName("Tan")); }
}
public osf.Color Teal
{
get { return new Color(System.Drawing.Color.FromName("Teal")); }
}
public osf.Color Thistle
{
get { return new Color(System.Drawing.Color.FromName("Thistle")); }
}
public osf.Color Tomato
{
get { return new Color(System.Drawing.Color.FromName("Tomato")); }
}
public osf.Color Transparent
{
get { return new Color(System.Drawing.Color.FromName("Transparent")); }
}
public osf.Color Turquoise
{
get { return new Color(System.Drawing.Color.FromName("Turquoise")); }
}
public osf.Color Violet
{
get { return new Color(System.Drawing.Color.FromName("Violet")); }
}
public osf.Color Wheat
{
get { return new Color(System.Drawing.Color.FromName("Wheat")); }
}
public osf.Color White
{
get { return new Color(System.Drawing.Color.FromName("White")); }
}
public osf.Color WhiteSmoke
{
get { return new Color(System.Drawing.Color.FromName("WhiteSmoke")); }
}
public osf.Color Window
{
get { return new Color(System.Drawing.Color.FromName("Window")); }
}
public osf.Color WindowFrame
{
get { return new Color(System.Drawing.Color.FromName("WindowFrame")); }
}
public osf.Color WindowText
{
get { return new Color(System.Drawing.Color.FromName("WindowText")); }
}
public osf.Color Yellow
{
get { return new Color(System.Drawing.Color.FromName("Yellow")); }
}
public osf.Color YellowGreen
{
get { return new Color(System.Drawing.Color.FromName("YellowGreen")); }
}
//Методы============================================================
public osf.Color FromArgb(int a, int r, int g, int b)
{
return new Color(System.Drawing.Color.FromArgb(a, r, g, b));
}
public osf.Color FromName(string p1)
{
return new Color(System.Drawing.Color.FromName(p1));
}
public osf.Color FromRgb(int r, int g, int b)
{
return new Color(System.Drawing.Color.FromArgb(r, g, b));
}
public int ToArgb()
{
return M_Color.ToArgb();
}
}
[ContextClass ("КлЦвет", "ClColor")]
public class ClColor : AutoContext<ClColor>
{
public ClColor()
{
Color Color1 = new Color();
Color1.dll_obj = this;
Base_obj = Color1;
}
public ClColor(Color p1)
{
Color Color1 = p1;
Color1.dll_obj = this;
Base_obj = Color1;
}
public Color Base_obj;
//Свойства============================================================
[ContextProperty("Аквамариновый", "Aquamarine")]
public ClColor Aquamarine
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.Aquamarine); }
}
[ContextProperty("АнтичныйБелый", "AntiqueWhite")]
public ClColor AntiqueWhite
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.AntiqueWhite); }
}
[ContextProperty("Бежевый", "Beige")]
public ClColor Beige
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.Beige); }
}
[ContextProperty("БелаяДымка", "WhiteSmoke")]
public ClColor WhiteSmoke
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.WhiteSmoke); }
}
[ContextProperty("Белый", "White")]
public ClColor White
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.White); }
}
[ContextProperty("БелыйНавахо", "NavajoWhite")]
public ClColor NavajoWhite
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.NavajoWhite); }
}
[ContextProperty("Бирюзовый", "Turquoise")]
public ClColor Turquoise
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.Turquoise); }
}
[ContextProperty("Бисквитный", "Bisque")]
public ClColor Bisque
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.Bisque); }
}
[ContextProperty("БледноБирюзовый", "PaleTurquoise")]
public ClColor PaleTurquoise
{
get { return (ClColor)OneScriptForms.RevertObj(Base_obj.PaleTurquoise); }
}
[ContextProperty("БледноЖелтый", "Cornsilk")]
public ClColor Cornsilk
{