Aspose::Pub::TextStyle Class Reference

Describes PUB text style More...

Inherits Aspose::Pub::BaseStyle.

Public Member Functions

ASPOSE_PUB_SHARED_API bool get_IsBold () const
 Is text bold More...
 
ASPOSE_PUB_SHARED_API bool get_IsItalic () const
 Is text italic More...
 
ASPOSE_PUB_SHARED_API Aspose::Pub::UnderlineType get_UnderlineType () const
 Underline type for text More...
 
ASPOSE_PUB_SHARED_API bool get_IsOutline () const
 Is text outlined More...
 
ASPOSE_PUB_SHARED_API bool get_IsShadow () const
 Is text shadowed More...
 
ASPOSE_PUB_SHARED_API bool get_IsSmallCapsMode () const
 Is small caps mode enabled More...
 
ASPOSE_PUB_SHARED_API bool get_IsAllCapsMode () const
 Is all caps mode enabled More...
 
ASPOSE_PUB_SHARED_API bool get_IsEmboss () const
 Is text embossed More...
 
ASPOSE_PUB_SHARED_API bool get_IsEngrave () const
 Is text engraved More...
 
ASPOSE_PUB_SHARED_API int32_t get_RawTextSize () const
 Size of text in PUB metrics(in EMUs) More...
 
ASPOSE_PUB_SHARED_API int32_t get_ColorIndex () const
 Gets index of color in Document.Colors array More...
 
ASPOSE_PUB_SHARED_API int32_t get_FontIndex () const
 Gets index of font name in Document.FontNames array More...
 
ASPOSE_PUB_SHARED_API Aspose::Pub::SuperscriptType get_SuperscriptType () const
 Type of superscript More...
 
ASPOSE_PUB_SHARED_API double get_ScaleValue () const
 Value of scale More...
 
ASPOSE_PUB_SHARED_API int32_t get_Locale () const
 Locale identifier More...
 
ASPOSE_PUB_SHARED_API TextStyle ()
 Constructor More...
 
ASPOSE_PUB_SHARED_API void SetIsBold (bool value)
 Sets is text bold More...
 
ASPOSE_PUB_SHARED_API void SetIsItalic (bool value)
 Sets is text italic More...
 
ASPOSE_PUB_SHARED_API void SetUnderlineType (Aspose::Pub::UnderlineType value)
 Sets underline type for text More...
 
ASPOSE_PUB_SHARED_API void SetIsOutline (bool value)
 Sets is text outlined More...
 
ASPOSE_PUB_SHARED_API void SetIsShadow (bool value)
 Sets is text shadowed More...
 
ASPOSE_PUB_SHARED_API void SetIsSmallCapsMode (bool value)
 Enables/disables small caps mode for text More...
 
ASPOSE_PUB_SHARED_API void SetIsAllCapsMode (bool value)
 Enables/disables all caps mode for text More...
 
ASPOSE_PUB_SHARED_API void SetIsEmboss (bool value)
 Sets is text embossed More...
 
ASPOSE_PUB_SHARED_API void SetIsEngrave (bool value)
 Sets is text engraved More...
 
ASPOSE_PUB_SHARED_API void SetRawTextSize (int32_t value)
 Sets size of text in PUB metrics(in EMUs) More...
 
ASPOSE_PUB_SHARED_API double CalculateTextSize ()
 Calculates text size in points More...
 
ASPOSE_PUB_SHARED_API void SetColorIndex (int32_t value)
 Sets index of color in Document.Colors array More...
 
ASPOSE_PUB_SHARED_API void SetFontIndex (int32_t value)
 Sets index of font name in Document.FontNames array More...
 
ASPOSE_PUB_SHARED_API void SetSuperscriptType (Aspose::Pub::SuperscriptType value)
 Sets type of superscript More...
 
ASPOSE_PUB_SHARED_API void SetScaleValue (double value)
 Sets value of scale More...
 
ASPOSE_PUB_SHARED_API void SetLocale (int32_t value)
 Sets locale identifier More...
 
- Public Member Functions inherited from Aspose::Pub::BaseStyle
ASPOSE_PUB_SHARED_API bool get_IsEmpty ()
 Is style not initialized More...
 
ASPOSE_PUB_SHARED_API BaseStyle ()
 
- 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...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 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 TypeInfoGetType () 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...
 

Protected Member Functions

ASPOSE_PUB_SHARED_API System::String GetNamesOfAllProcessedIdentifiers () override
 Get names of processed identifiers More...
 
- Protected Member Functions inherited from Aspose::Pub::BaseStyle
System::ArrayPtr< int32_t > get_IdentifiersSetted ()
 
System::String get_PropertiesSetted ()
 
void AddIdentifierProcessed (int32_t id)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 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 TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
- Protected Attributes inherited from Aspose::Pub::BaseStyle
System::SharedPtr< System::Collections::Generic::List< int32_t > > _processedIds
 Identifiers processed More...
 

Detailed Description

Describes PUB text style

Constructor & Destructor Documentation

◆ TextStyle()

ASPOSE_PUB_SHARED_API Aspose::Pub::TextStyle::TextStyle ( )

Constructor

Member Function Documentation

◆ CalculateTextSize()

ASPOSE_PUB_SHARED_API double Aspose::Pub::TextStyle::CalculateTextSize ( )

Calculates text size in points

Returns
text size in points

◆ get_ColorIndex()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::TextStyle::get_ColorIndex ( ) const

Gets index of color in Document.Colors array

◆ get_FontIndex()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::TextStyle::get_FontIndex ( ) const

Gets index of font name in Document.FontNames array

◆ get_IsAllCapsMode()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsAllCapsMode ( ) const

Is all caps mode enabled

◆ get_IsBold()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsBold ( ) const

Is text bold

◆ get_IsEmboss()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsEmboss ( ) const

Is text embossed

◆ get_IsEngrave()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsEngrave ( ) const

Is text engraved

◆ get_IsItalic()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsItalic ( ) const

Is text italic

◆ get_IsOutline()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsOutline ( ) const

Is text outlined

◆ get_IsShadow()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsShadow ( ) const

Is text shadowed

◆ get_IsSmallCapsMode()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::TextStyle::get_IsSmallCapsMode ( ) const

Is small caps mode enabled

◆ get_Locale()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::TextStyle::get_Locale ( ) const

Locale identifier

◆ get_RawTextSize()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::TextStyle::get_RawTextSize ( ) const

Size of text in PUB metrics(in EMUs)

◆ get_ScaleValue()

ASPOSE_PUB_SHARED_API double Aspose::Pub::TextStyle::get_ScaleValue ( ) const

Value of scale

◆ get_SuperscriptType()

ASPOSE_PUB_SHARED_API Aspose::Pub::SuperscriptType Aspose::Pub::TextStyle::get_SuperscriptType ( ) const

Type of superscript

◆ get_UnderlineType()

ASPOSE_PUB_SHARED_API Aspose::Pub::UnderlineType Aspose::Pub::TextStyle::get_UnderlineType ( ) const

Underline type for text

◆ GetNamesOfAllProcessedIdentifiers()

ASPOSE_PUB_SHARED_API System::String Aspose::Pub::TextStyle::GetNamesOfAllProcessedIdentifiers ( )
overrideprotectedvirtual

Get names of processed identifiers

Returns
names of identifiers

Implements Aspose::Pub::BaseStyle.

◆ SetColorIndex()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetColorIndex ( int32_t  value)

Sets index of color in Document.Colors array

Parameters
valueValue of color index

◆ SetFontIndex()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetFontIndex ( int32_t  value)

Sets index of font name in Document.FontNames array

Parameters
valueValue of font index

◆ SetIsAllCapsMode()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsAllCapsMode ( bool  value)

Enables/disables all caps mode for text

Parameters
valueIs all caps mode enabled

◆ SetIsBold()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsBold ( bool  value)

Sets is text bold

Parameters
valueIs bold value

◆ SetIsEmboss()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsEmboss ( bool  value)

Sets is text embossed

Parameters
valueIs text embossed value

◆ SetIsEngrave()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsEngrave ( bool  value)

Sets is text engraved

Parameters
valueIs text engraved value

◆ SetIsItalic()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsItalic ( bool  value)

Sets is text italic

Parameters
valueIs italic value

◆ SetIsOutline()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsOutline ( bool  value)

Sets is text outlined

Parameters
valueIs text outlined value

◆ SetIsShadow()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsShadow ( bool  value)

Sets is text shadowed

Parameters
valueIs text shadowed value

◆ SetIsSmallCapsMode()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetIsSmallCapsMode ( bool  value)

Enables/disables small caps mode for text

Parameters
valueIs small caps mode enabled

◆ SetLocale()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetLocale ( int32_t  value)

Sets locale identifier

Parameters
valueLocale identifier

◆ SetRawTextSize()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetRawTextSize ( int32_t  value)

Sets size of text in PUB metrics(in EMUs)

Parameters
valueValue of text size in EMUs

◆ SetScaleValue()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetScaleValue ( double  value)

Sets value of scale

Parameters
valueValue of scale

◆ SetSuperscriptType()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetSuperscriptType ( Aspose::Pub::SuperscriptType  value)

Sets type of superscript

Parameters
valueValue of superscript type

◆ SetUnderlineType()

ASPOSE_PUB_SHARED_API void Aspose::Pub::TextStyle::SetUnderlineType ( Aspose::Pub::UnderlineType  value)

Sets underline type for text

Parameters
valueValue of underline type