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