CellFormat.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/shared_ptr.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/TextOrientation.h>
15 #include <Aspose.Words.Cpp/Tables/CellVerticalAlignment.h>
16 #include <Aspose.Words.Cpp/Tables/CellMerge.h>
17 #include <Aspose.Words.Cpp/IShadingAttrSource.h>
18 #include <Aspose.Words.Cpp/IBorderAttrSource.h>
19 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
20 
21 namespace Aspose
22 {
23 namespace Words
24 {
25 class BorderCollection;
26 enum class BorderType;
27 
28 class Shading;
29 namespace Tables
30 {
31 
32 class PreferredWidth;
33 }
34 }
35 }
36 namespace System
37 {
38 namespace Collections
39 {
40 namespace Generic
41 {
42 template <typename, typename> class SortedList;
43 }
44 }
45 }
46 
47 namespace Aspose {
48 
49 namespace Words {
50 
51 namespace Tables {
52 
161 class ASPOSE_WORDS_SHARED_CLASS CellFormat : public Aspose::Words::IBorderAttrSource, public Aspose::Words::IShadingAttrSource
162 {
163  typedef CellFormat ThisType;
164  typedef Aspose::Words::IBorderAttrSource BaseType;
165  typedef Aspose::Words::IShadingAttrSource BaseType1;
166 
167  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
168  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
169 
170 public:
171 
216  ASPOSE_WORDS_SHARED_API double get_LeftPadding();
217 
219  ASPOSE_WORDS_SHARED_API void set_LeftPadding(double value);
220 
265  ASPOSE_WORDS_SHARED_API double get_RightPadding();
266 
268  ASPOSE_WORDS_SHARED_API void set_RightPadding(double value);
269 
314  ASPOSE_WORDS_SHARED_API double get_TopPadding();
315 
317  ASPOSE_WORDS_SHARED_API void set_TopPadding(double value);
318 
363  ASPOSE_WORDS_SHARED_API double get_BottomPadding();
364 
366  ASPOSE_WORDS_SHARED_API void set_BottomPadding(double value);
367 
395 
491 
556 
559 
679  ASPOSE_WORDS_SHARED_API double get_Width();
680 
682  ASPOSE_WORDS_SHARED_API void set_Width(double value);
683 
733 
736 
819 
821  ASPOSE_WORDS_SHARED_API void set_VerticalMerge(Aspose::Words::Tables::CellMerge value);
822 
895 
897  ASPOSE_WORDS_SHARED_API void set_HorizontalMerge(Aspose::Words::Tables::CellMerge value);
898 
1003 
1005  ASPOSE_WORDS_SHARED_API void set_Orientation(Aspose::Words::TextOrientation value);
1006 
1070  ASPOSE_WORDS_SHARED_API bool get_FitText();
1071 
1073  ASPOSE_WORDS_SHARED_API void set_FitText(bool value);
1074 
1138  ASPOSE_WORDS_SHARED_API bool get_WrapText();
1139 
1141  ASPOSE_WORDS_SHARED_API void set_WrapText(bool value);
1142 
1169  ASPOSE_WORDS_SHARED_API void ClearFormatting();
1170 
1192  ASPOSE_WORDS_SHARED_API void SetPaddings(double leftPadding, double topPadding, double rightPadding, double bottomPadding);
1193 
1194 protected:
1195 
1196  virtual ASPOSE_WORDS_SHARED_API ~CellFormat();
1197 
1198 private:
1199 
1201 
1204 
1205  System::SharedPtr<System::Object> GetDirectBorderAttr(int32_t ) override;
1206  System::SharedPtr<System::Object> FetchInheritedBorderAttr(int32_t ) override;
1207  void SetBorderAttr(int32_t , System::SharedPtr<System::Object> ) override;
1208  System::SharedPtr<System::Object> FetchInheritedShadingAttr(int32_t ) override;
1209 
1210 };
1211 
1212 }
1213 }
1214 }