Fill.h
1 // Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/array.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/Drawing/TextureAlignment.h>
15 #include <Aspose.Words.Cpp/Drawing/PresetTexture.h>
16 #include <Aspose.Words.Cpp/Drawing/PatternType.h>
17 #include <Aspose.Words.Cpp/Drawing/GradientVariant.h>
18 #include <Aspose.Words.Cpp/Drawing/GradientStyle.h>
19 #include <Aspose.Words.Cpp/Drawing/FillType.h>
20 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
21 
22 namespace Aspose
23 {
24 namespace Words
25 {
26 namespace Drawing
27 {
28 
29 class GradientStopCollection;
30 
31 }
32 
33 }
34 }
35 namespace System
36 {
37 namespace Drawing
38 {
39 class Color;
40 }
41 namespace IO
42 {
43 class Stream;
44 }
45 }
46 
47 namespace Aspose {
48 
49 namespace Words {
50 
51 namespace Drawing {
52 
88 class ASPOSE_WORDS_SHARED_CLASS Fill : public System::Object
89 {
90  typedef Fill ThisType;
91  typedef System::Object BaseType;
92 
93  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
94  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
95 
96 public:
97 
100 
103 
127 
130 
157  [[deprecated("This property is obsolete. Please, use ForeColor property instead.")]]
158  ASPOSE_WORDS_SHARED_API System::Drawing::Color get_Color();
159 
162  [[deprecated("This property is obsolete. Please, use ForeColor property instead.")]]
163  ASPOSE_WORDS_SHARED_API void set_Color(System::Drawing::Color value);
164 
167  [[deprecated("This property is obsolete. Please, use Visible property instead.")]]
168  ASPOSE_WORDS_SHARED_API bool get_On();
169 
172  [[deprecated("This property is obsolete. Please, use Visible property instead.")]]
173  ASPOSE_WORDS_SHARED_API void set_On(bool value);
174 
207  ASPOSE_WORDS_SHARED_API double get_Opacity();
208 
210  ASPOSE_WORDS_SHARED_API void set_Opacity(double value);
211 
286  ASPOSE_WORDS_SHARED_API System::ArrayPtr<uint8_t> get_ImageBytes();
287 
360  ASPOSE_WORDS_SHARED_API System::Drawing::Color get_ForeColor();
361 
363  ASPOSE_WORDS_SHARED_API void set_ForeColor(System::Drawing::Color value);
364 
366  ASPOSE_WORDS_SHARED_API System::Drawing::Color get_BackColor();
367 
369  ASPOSE_WORDS_SHARED_API void set_BackColor(System::Drawing::Color value);
370 
443  ASPOSE_WORDS_SHARED_API bool get_Visible();
444 
446  ASPOSE_WORDS_SHARED_API void set_Visible(bool value);
447 
449  ASPOSE_WORDS_SHARED_API double get_Transparency();
450 
452  ASPOSE_WORDS_SHARED_API void set_Transparency(double value);
453 
455  ASPOSE_WORDS_SHARED_API bool get_RotateWithObject();
456 
458  ASPOSE_WORDS_SHARED_API void set_RotateWithObject(bool value);
459 
462 
502  ASPOSE_WORDS_SHARED_API double get_GradientAngle();
503 
505  ASPOSE_WORDS_SHARED_API void set_GradientAngle(double value);
506 
547 
588 
641 
643  ASPOSE_WORDS_SHARED_API void Solid();
644 
670  ASPOSE_WORDS_SHARED_API void Solid(System::Drawing::Color color);
671 
709  ASPOSE_WORDS_SHARED_API void PresetTextured(Aspose::Words::Drawing::PresetTexture presetTexture);
710 
735  ASPOSE_WORDS_SHARED_API void Patterned(Aspose::Words::Drawing::PatternType patternType);
736 
763  ASPOSE_WORDS_SHARED_API void Patterned(Aspose::Words::Drawing::PatternType patternType, System::Drawing::Color foreColor, System::Drawing::Color backColor);
764 
808  ASPOSE_WORDS_SHARED_API void OneColorGradient(Aspose::Words::Drawing::GradientStyle style, Aspose::Words::Drawing::GradientVariant variant, double degree);
809 
855 
899 
947 
951  ASPOSE_WORDS_SHARED_API void SetImage(const System::String& fileName);
952 
956  ASPOSE_WORDS_SHARED_API void SetImage(const System::SharedPtr<System::IO::Stream>& stream);
957 
961  ASPOSE_WORDS_SHARED_API void SetImage(const System::ArrayPtr<uint8_t>& imageBytes);
962 
963 protected:
964 
965 private:
966 
968 
969 };
970 
971 }
972 }
973 }