Aspose.Tasks for C++
FontDescriptor.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="FontDescriptor.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object_ext.h>
9 #include <system/enum_helpers.h>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace Visualization
18 {
19 class FontCollection;
20 enum class FontStyles;
21 } // namespace Visualization
22 } // namespace Tasks
23 } // namespace Aspose
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 namespace Visualization {
30 
31 /// <summary>
32 /// Represents font information.
33 /// </summary>
34 class ASPOSE_TASKS_SHARED_CLASS FontDescriptor final : public System::Object
35 {
36  typedef FontDescriptor ThisType;
37  typedef System::Object BaseType;
38 
39  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
41 
42  friend class System::ObjectExt;
43  friend class Aspose::Tasks::Visualization::FontCollection;
44 
45 public:
46 
47  /// <summary>
48  /// Gets the name of the font's family.
49  /// </summary>
50  ASPOSE_TASKS_SHARED_API System::String get_FontFamily() const;
51  /// <summary>
52  /// Gets size of the font.
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API float get_Size() const;
55  /// <summary>
56  /// Gets style of the font.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API FontStyles get_Style() const;
59 
60  /// <summary>
61  /// Initializes a new instance of the <see cref="FontDescriptor"></see> class with the specified font family and size.
62  /// </summary>
63  /// <param name="fontFamily">Name of the font family.</param>
64  /// <param name="size">Size of the font.</param>
65  ASPOSE_TASKS_SHARED_API FontDescriptor(const System::String& fontFamily, float size);
66  /// <summary>
67  /// Initializes a new instance of the <see cref="FontDescriptor"></see> class with the specified font family, size and style.
68  /// </summary>
69  /// <param name="fontFamily">Name of the font family.</param>
70  /// <param name="size">Size of the font.</param>
71  /// <param name="style">Style of the font.</param>
72  ASPOSE_TASKS_SHARED_API FontDescriptor(const System::String& fontFamily, float size, FontStyles style);
73  /// <summary>
74  /// Initializes a new instance of the <see cref="FontDescriptor"></see> class with the specified font and style.
75  /// </summary>
76  /// <param name="font">Instance of <see cref="FontDescriptor"></see> to copy.</param>
77  /// <param name="style">Style of the font.</param>
78  ASPOSE_TASKS_SHARED_API FontDescriptor(const System::SharedPtr<FontDescriptor>& font, FontStyles style);
79 
80 protected:
81 
82  ASPOSE_TASKS_SHARED_API bool Equals(const System::SharedPtr<FontDescriptor>& other);
83  #ifdef ASPOSE_GET_SHARED_MEMBERS
84  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
85  #endif
86 
87 
88 private:
89 
90  System::String pr_FontFamily;
91 
92  /// <summary>
93  /// Gets the name of the font's family.
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API void set_FontFamily(const System::String& value);
96 
97  float pr_Size;
98 
99  /// <summary>
100  /// Gets size of the font.
101  /// </summary>
102  ASPOSE_TASKS_SHARED_API void set_Size(float value);
103 
104  FontStyles pr_Style;
105 
106  /// <summary>
107  /// Gets style of the font.
108  /// </summary>
109  ASPOSE_TASKS_SHARED_API void set_Style(FontStyles value);
110  System::String get_DebuggerDisplay();
111 
112 };
113 
114 } // namespace Visualization
115 } // namespace Tasks
116 } // namespace Aspose
117 
118 
Represents font information.
Definition: FontDescriptor.h:34