CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
paper_size.h
1
2#pragma once
3
4#include <system/object.h>
5#include <system/string.h>
6
7#include "paper_kind.h"
8
9namespace System { namespace Drawing { namespace Printing {
10
12class ASPOSECPP_SHARED_CLASS PaperSize : public System::Object
13{
14 RTTI_INFO(System::Drawing::Printing::PaperSize, ::System::BaseTypesInfo<System::Object>)
15public:
16
18 ASPOSECPP_SHARED_API PaperSize();
19
25 ASPOSECPP_SHARED_API PaperSize(PaperKind kind, System::String name, int32_t width, int32_t height);
26
31 ASPOSECPP_SHARED_API PaperSize(System::String name, int32_t width, int32_t height);
32
35 ASPOSECPP_SHARED_API int32_t get_Height() const;
36
39 ASPOSECPP_SHARED_API void set_Height(int32_t value);
40
43 ASPOSECPP_SHARED_API PaperKind get_Kind() const;
44
47 ASPOSECPP_SHARED_API System::String get_PaperName() const;
48
51 ASPOSECPP_SHARED_API void set_PaperName(System::String value);
52
55 ASPOSECPP_SHARED_API int32_t get_RawKind() const;
56
58 ASPOSECPP_SHARED_API void set_RawKind(int32_t value);
59
62 ASPOSECPP_SHARED_API int32_t get_Width() const;
63
66 ASPOSECPP_SHARED_API void set_Width(int32_t value);
67
70 ASPOSECPP_SHARED_API System::String ToString() const override;
71private:
72 PaperKind m_kind;
73 System::String m_name;
74 int32_t m_width;
75 int32_t m_height;
76 bool m_created_by_default_constructor = false;
77};
78
79} // namespace Printing
80} // namespace Drawing
81} // namespace System
Specifies the size of a piece of paper.
Definition: paper_size.h:13
System::String get_PaperName() const
Gets the name of the type of paper.
void set_RawKind(int32_t value)
Sets an integer representing one of the System::Drawing::Printing::PaperSize values or a custom value...
int32_t get_RawKind() const
Gets an integer representing one of the System::Drawing::Printing::PaperSize values or a custom value...
PaperKind get_Kind() const
Gets the type of paper.
int32_t get_Height() const
Gets the height of the paper, in hundredths of an inch.
void set_Width(int32_t value)
Sets the width of the paper, in hundredths of an inch.
void set_PaperName(System::String value)
Sets the name of the type of paper.
int32_t get_Width() const
Gets the width of the paper, in hundredths of an inch.
void set_Height(int32_t value)
Sets the height of the paper, in hundredths of an inch.
PaperSize()
Initializes a new instance of the System::Drawing::Printing::PaperSize class.
System::String ToString() const override
Provides information about the System::Drawing::Printing::PaperSize in string form.
PaperSize(PaperKind kind, System::String name, int32_t width, int32_t height)
Initializes a new instance of the System::Drawing::Printing::PaperSize class.
PaperSize(System::String name, int32_t width, int32_t height)
Initializes a new instance of the System::Drawing::Printing::PaperSize class.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
PaperKind
Specifies the standard paper sizes.
Definition: paper_kind.h:9
Definition: db_command.h:9