Characteristics.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Annotations
13 {
14 class Annotation;
15 } // namespace Annotations
16 namespace Engine
17 {
18 namespace Data
19 {
20 class IPdfObject;
21 class IPdfPrimitive;
22 } // namespace Data
23 } // namespace Engine
24 namespace Forms
25 {
26 class ButtonField;
27 class IconFit;
28 class TextBoxField;
29 } // namespace Forms
30 enum class Rotation;
31 } // namespace Pdf
32 } // namespace Aspose
33 namespace System
34 {
35 namespace Collections
36 {
37 namespace Generic
38 {
39 template <typename, typename> class Dictionary;
40 } // namespace Generic
41 } // namespace Collections
42 namespace Drawing
43 {
44 class Color;
45 } // namespace Drawing
46 } // namespace System
47 
48 namespace Aspose {
49 
50 namespace Pdf {
51 
52 namespace Annotations {
53 
57 class ASPOSE_PDF_SHARED_CLASS Characteristics final : public System::Object
58 {
59  typedef Characteristics ThisType;
60  typedef System::Object BaseType;
61 
62  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
63  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
64 
69 
70 public:
71 
75  ASPOSE_PDF_SHARED_API System::Drawing::Color get_Background();
79  ASPOSE_PDF_SHARED_API void set_Background(System::Drawing::Color value);
83  ASPOSE_PDF_SHARED_API System::Drawing::Color get_Border();
87  ASPOSE_PDF_SHARED_API void set_Border(System::Drawing::Color value);
91  ASPOSE_PDF_SHARED_API Rotation get_Rotate();
95  ASPOSE_PDF_SHARED_API void set_Rotate(Rotation value);
96 
97 protected:
98 
100 
101  static void assertMK(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> annotation);
102 
104 
106 
107 private:
108 
110 
111  System::Drawing::Color getColor(System::String entry);
112  void setColor(System::String entry, System::Drawing::Color color);
113  static void setColor(System::SharedPtr<Annotation> current, System::String entry, System::Drawing::Color color);
114 
115 };
116 
117 } // namespace Annotations
118 } // namespace Pdf
119 } // namespace Aspose
120 
121 
Represents annotation characteristics
Definition: Characteristics.h:57
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Rotation
Enumeration of possible rotation values.
Definition: Rotation.h:16
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(IconFit, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfObject > annotation))
Class represnets push button field.
Definition: ButtonField.h:73
System::WeakPtr< Annotation > annotation
Definition: Characteristics.h:99
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Class representing text box field.
Definition: TextBoxField.h:88
Definition: AFRelationship.h:4
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition: color.h:23
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: TextFragmentState.h:69
Describes how the widget annotation&#39;s icon shall be displayed within its annotation rectangle...
Definition: IconFit.h:57
Class representing annotation object.
Definition: Annotation.h:303
Whole PDF file will be submitted.