Class for representing field properties. More...
#include "FormFieldFacade.h"
Inherits System::Object.
Public Member Functions | |
ASPOSE_PDF_SHARED_API System::Drawing::Color | get_BorderColor () const |
The color of a field border. More... | |
ASPOSE_PDF_SHARED_API void | set_BorderColor (System::Drawing::Color value) |
The color of a field border. More... | |
ASPOSE_PDF_SHARED_API int32_t | get_BorderStyle () const |
The style of a field border. More... | |
ASPOSE_PDF_SHARED_API void | set_BorderStyle (int32_t value) |
The style of a field border. More... | |
ASPOSE_PDF_SHARED_API float | get_BorderWidth () const |
The width of a field border. More... | |
ASPOSE_PDF_SHARED_API void | set_BorderWidth (float value) |
The width of a field border. More... | |
ASPOSE_PDF_SHARED_API FontStyle | get_Font () const |
The font type of a field text. More... | |
ASPOSE_PDF_SHARED_API void | set_Font (FontStyle value) |
The font type of a field text. More... | |
ASPOSE_PDF_SHARED_API System::String | get_CustomFont () const |
Gets name of the font when this is non-standart (other then 14 standard fonts). More... | |
ASPOSE_PDF_SHARED_API void | set_CustomFont (System::String value) |
Sets name of the font when this is non-standart (other then 14 standard fonts). More... | |
ASPOSE_PDF_SHARED_API float | get_FontSize () const |
The size of a field text. More... | |
ASPOSE_PDF_SHARED_API void | set_FontSize (float value) |
The size of a field text. More... | |
ASPOSE_PDF_SHARED_API System::Drawing::Color | get_TextColor () const |
The color of the field text. More... | |
ASPOSE_PDF_SHARED_API void | set_TextColor (System::Drawing::Color value) |
The color of the field text. More... | |
ASPOSE_PDF_SHARED_API EncodingType | get_TextEncoding () const |
The text encoding type of the field text. More... | |
ASPOSE_PDF_SHARED_API void | set_TextEncoding (EncodingType value) |
The text encoding type of the field text. More... | |
ASPOSE_PDF_SHARED_API int32_t | get_Alignment () const |
The alignment of a field text, default is left alignment. More... | |
ASPOSE_PDF_SHARED_API void | set_Alignment (int32_t value) |
The alignment of a field text, default is left alignment. More... | |
ASPOSE_PDF_SHARED_API int32_t | get_Rotation () const |
The rotation of a field text. More... | |
ASPOSE_PDF_SHARED_API void | set_Rotation (int32_t value) |
The rotation of a field text. More... | |
ASPOSE_PDF_SHARED_API System::String | get_Caption () const |
The normal caption of form field. More... | |
ASPOSE_PDF_SHARED_API void | set_Caption (System::String value) |
The normal caption of form field. More... | |
ASPOSE_PDF_SHARED_API int32_t | get_ButtonStyle () const |
The style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*. More... | |
ASPOSE_PDF_SHARED_API void | set_ButtonStyle (int32_t value) |
The style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*. More... | |
ASPOSE_PDF_SHARED_API System::Drawing::Rectangle | get_Box () const |
A rectangle object holding field's location. More... | |
ASPOSE_PDF_SHARED_API void | set_Box (System::Drawing::Rectangle value) |
A rectangle object holding field's location. More... | |
ASPOSE_PDF_SHARED_API System::ArrayPtr< float > | get_Position () const |
A rectangle object holding field's location. More... | |
ASPOSE_PDF_SHARED_API void | set_Position (System::ArrayPtr< float > value) |
A rectangle object holding field's location. More... | |
ASPOSE_PDF_SHARED_API int32_t | get_PageNumber () const |
An integer value holding the number of page on which field locates. More... | |
ASPOSE_PDF_SHARED_API void | set_PageNumber (int32_t value) |
An integer value holding the number of page on which field locates. More... | |
ASPOSE_PDF_SHARED_API System::ArrayPtr< System::String > | get_Items () const |
An array of string, each representing an option of a combo box/list/radio box field. More... | |
ASPOSE_PDF_SHARED_API void | set_Items (System::ArrayPtr< System::String > value) |
An array of string, each representing an option of a combo box/list/radio box field. More... | |
ASPOSE_PDF_SHARED_API System::ArrayPtr< System::ArrayPtr< System::String > > | get_ExportItems () const |
The options for adding a list/combo/radio box More... | |
ASPOSE_PDF_SHARED_API void | set_ExportItems (System::ArrayPtr< System::ArrayPtr< System::String >> value) |
The options for adding a list/combo/radio box More... | |
ASPOSE_PDF_SHARED_API System::Drawing::Color | get_BackgroundColor () const |
The color of a field background, default is white. More... | |
ASPOSE_PDF_SHARED_API void | set_BackgroundColor (System::Drawing::Color value) |
The color of a field background, default is white. More... | |
ASPOSE_PDF_SHARED_API void | Reset () |
Reset all visual attribtues to empty value. More... | |
ASPOSE_PDF_SHARED_API | FormFieldFacade () |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | Equals (double const &objA, double const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
Specialization of Object::ReferenceEquals for case of string and nullptr. More... | |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Specialization of Object::ReferenceEquals for case of strings. More... | |
Static Public Attributes | |
static constexpr ASPOSE_PDF_SHARED_API float | BorderWidthUndefined = -1 |
Undefined border width. More... | |
static constexpr ASPOSE_PDF_SHARED_API float | BorderWidthThin = 1 |
Defines a thin border width. More... | |
static constexpr ASPOSE_PDF_SHARED_API float | BorderWidthMedium = 2 |
Defines a medium border width. More... | |
static constexpr ASPOSE_PDF_SHARED_API float | BorderWidthThick = 3 |
Defines a thick border width. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleSolid = 0 |
Defines a solid border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleDashed = 1 |
Defines a dashed border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleBeveled = 2 |
Defines a beveled border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleInset = 3 |
Defines an inseted border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleUnderline = 4 |
Defines an underlined border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | BorderStyleUndefined = 5 |
Undefined border style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignLeft = 0 |
Defines aglignment to left style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignCenter = 1 |
Defines aglignment to center style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignRight = 2 |
Defines aglignment to right style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignUndefined = 3 |
Undefined aglignment style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignJustified = 4 |
Defines text justification alignment style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignTop = 0 |
Defines vertical aglignment as top style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignMiddle = 1 |
Defines vertical aglignment as middle style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | AlignBottom = 2 |
Defines vertical aglignment as bottom style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleCircle = u'l' |
Defines a circle check box style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleCheck = u'4' |
Defines the shape of a check box field when it checked. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleCross = u'8' |
Defines a cross check box style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleDiamond = u'u' |
Defines a diamond check box style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleStar = u'H' |
Defines a star check box style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleSquare = u'n' |
Defines a square check box style. More... | |
static constexpr ASPOSE_PDF_SHARED_API int32_t | CheckBoxStyleUndefined = u' ' |
Defines an undefined check box style. More... | |
Protected Member Functions | |
void | setFontStyle (System::String fontName) |
FontStyle | shortNameToStyle (System::String fontName) |
Converts font name into fotn style name. More... | |
Aspose::Pdf::Forms::BoxStyle | translateCheckBoxStyle () |
Protected Attributes | |
bool | _customFontSpecified |
System::String | _customFont |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Class for representing field properties.
ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::FormFieldFacade::FormFieldFacade | ( | ) |
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::FormFieldFacade::get_Alignment | ( | ) | const |
The alignment of a field text, default is left alignment.
ASPOSE_PDF_SHARED_API System::Drawing::Color Aspose::Pdf::Facades::FormFieldFacade::get_BackgroundColor | ( | ) | const |
The color of a field background, default is white.
ASPOSE_PDF_SHARED_API System::Drawing::Color Aspose::Pdf::Facades::FormFieldFacade::get_BorderColor | ( | ) | const |
The color of a field border.
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::FormFieldFacade::get_BorderStyle | ( | ) | const |
The style of a field border.
ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::FormFieldFacade::get_BorderWidth | ( | ) | const |
The width of a field border.
ASPOSE_PDF_SHARED_API System::Drawing::Rectangle Aspose::Pdf::Facades::FormFieldFacade::get_Box | ( | ) | const |
A rectangle object holding field's location.
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::FormFieldFacade::get_ButtonStyle | ( | ) | const |
The style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::FormFieldFacade::get_Caption | ( | ) | const |
The normal caption of form field.
ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::FormFieldFacade::get_CustomFont | ( | ) | const |
Gets name of the font when this is non-standart (other then 14 standard fonts).
ASPOSE_PDF_SHARED_API System::ArrayPtr<System::ArrayPtr<System::String> > Aspose::Pdf::Facades::FormFieldFacade::get_ExportItems | ( | ) | const |
The options for adding a list/combo/radio box
ASPOSE_PDF_SHARED_API FontStyle Aspose::Pdf::Facades::FormFieldFacade::get_Font | ( | ) | const |
The font type of a field text.
ASPOSE_PDF_SHARED_API float Aspose::Pdf::Facades::FormFieldFacade::get_FontSize | ( | ) | const |
The size of a field text.
ASPOSE_PDF_SHARED_API System::ArrayPtr<System::String> Aspose::Pdf::Facades::FormFieldFacade::get_Items | ( | ) | const |
An array of string, each representing an option of a combo box/list/radio box field.
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::FormFieldFacade::get_PageNumber | ( | ) | const |
An integer value holding the number of page on which field locates.
ASPOSE_PDF_SHARED_API System::ArrayPtr<float> Aspose::Pdf::Facades::FormFieldFacade::get_Position | ( | ) | const |
A rectangle object holding field's location.
ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::FormFieldFacade::get_Rotation | ( | ) | const |
The rotation of a field text.
ASPOSE_PDF_SHARED_API System::Drawing::Color Aspose::Pdf::Facades::FormFieldFacade::get_TextColor | ( | ) | const |
The color of the field text.
ASPOSE_PDF_SHARED_API EncodingType Aspose::Pdf::Facades::FormFieldFacade::get_TextEncoding | ( | ) | const |
The text encoding type of the field text.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::Reset | ( | ) |
Reset all visual attribtues to empty value.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Alignment | ( | int32_t | value | ) |
The alignment of a field text, default is left alignment.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_BackgroundColor | ( | System::Drawing::Color | value | ) |
The color of a field background, default is white.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_BorderColor | ( | System::Drawing::Color | value | ) |
The color of a field border.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_BorderStyle | ( | int32_t | value | ) |
The style of a field border.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_BorderWidth | ( | float | value | ) |
The width of a field border.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Box | ( | System::Drawing::Rectangle | value | ) |
A rectangle object holding field's location.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_ButtonStyle | ( | int32_t | value | ) |
The style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Caption | ( | System::String | value | ) |
The normal caption of form field.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_CustomFont | ( | System::String | value | ) |
Sets name of the font when this is non-standart (other then 14 standard fonts).
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_ExportItems | ( | System::ArrayPtr< System::ArrayPtr< System::String >> | value | ) |
The options for adding a list/combo/radio box
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Font | ( | FontStyle | value | ) |
The font type of a field text.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_FontSize | ( | float | value | ) |
The size of a field text.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Items | ( | System::ArrayPtr< System::String > | value | ) |
An array of string, each representing an option of a combo box/list/radio box field.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_PageNumber | ( | int32_t | value | ) |
An integer value holding the number of page on which field locates.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Position | ( | System::ArrayPtr< float > | value | ) |
A rectangle object holding field's location.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_Rotation | ( | int32_t | value | ) |
The rotation of a field text.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_TextColor | ( | System::Drawing::Color | value | ) |
The color of the field text.
ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::FormFieldFacade::set_TextEncoding | ( | EncodingType | value | ) |
The text encoding type of the field text.
|
protected |
|
protected |
Converts font name into fotn style name.
fontName |
|
protected |
|
protected |
|
protected |
|
static |
Defines vertical aglignment as bottom style.
|
static |
Defines aglignment to center style.
|
static |
Defines text justification alignment style.
|
static |
Defines aglignment to left style.
|
static |
Defines vertical aglignment as middle style.
|
static |
Defines aglignment to right style.
|
static |
Defines vertical aglignment as top style.
|
static |
Undefined aglignment style.
|
static |
Defines a beveled border style.
|
static |
Defines a dashed border style.
|
static |
Defines an inseted border style.
|
static |
Defines a solid border style.
|
static |
Undefined border style.
|
static |
Defines an underlined border style.
|
static |
Defines a medium border width.
|
static |
Defines a thick border width.
|
static |
Defines a thin border width.
|
static |
Undefined border width.
|
static |
Defines the shape of a check box field when it checked.
|
static |
Defines a circle check box style.
|
static |
Defines a cross check box style.
|
static |
Defines a diamond check box style.
|
static |
Defines a square check box style.
|
static |
Defines a star check box style.
|
static |
Defines an undefined check box style.