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