Represents a text state of a text More...

#include "TextState.h"

Inherits System::Object.

Inherited by Aspose::Pdf::Text::TextFragmentState.

Public Member Functions

virtual ASPOSE_PDF_SHARED_API float get_CharacterSpacing ()
 Gets character spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_CharacterSpacing (float value)
 Sets character spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API float get_LineSpacing ()
 Gets line spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_LineSpacing (float value)
 Sets line spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API float get_HorizontalScaling ()
 Gets horizontal scaling of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_HorizontalScaling (float value)
 Sets horizontal scaling of the text. More...
 
virtual ASPOSE_PDF_SHARED_API bool get_Subscript ()
 Gets subscript of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_Subscript (bool value)
 Sets subscript of the text. More...
 
virtual ASPOSE_PDF_SHARED_API bool get_Superscript ()
 Gets superscript of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_Superscript (bool value)
 Sets superscript of the text. More...
 
virtual ASPOSE_PDF_SHARED_API float get_WordSpacing ()
 Gets word spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_WordSpacing (float value)
 Sets word spacing of the text. More...
 
virtual ASPOSE_PDF_SHARED_API bool get_Invisible ()
 Gets the invisibility of text. This basically reflects the RenderingMode state, except for some special cases (like clipping). More...
 
virtual ASPOSE_PDF_SHARED_API void set_Invisible (bool value)
 Sets the invisibility of text. This basically reflects the RenderingMode state, except for some special cases (like clipping). More...
 
virtual ASPOSE_PDF_SHARED_API TextRenderingMode get_RenderingMode ()
 Gets rendering mode of text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_RenderingMode (TextRenderingMode value)
 Sets rendering mode of text. More...
 
virtual ASPOSE_PDF_SHARED_API float get_FontSize ()
 Gets font size of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_FontSize (float value)
 Sets font size of the text. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::Fontget_Font ()
 Gets font of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_Font (System::SharedPtr< Aspose::Pdf::Text::Font > value)
 Sets font of the text. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_ForegroundColor ()
 Gets foreground color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_ForegroundColor (System::SharedPtr< Color > value)
 Sets foreground color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_StrokingColor ()
 Gets foreground color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_StrokingColor (System::SharedPtr< Color > value)
 Sets foreground color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API bool get_Underline ()
 Gets underline for the text, represented by the TextFragment object More...
 
virtual ASPOSE_PDF_SHARED_API void set_Underline (bool value)
 Sets underline for the text, represented by the TextFragment object More...
 
virtual ASPOSE_PDF_SHARED_API bool get_StrikeOut ()
 Gets strikeout for the text, represented by the TextSegment object More...
 
virtual ASPOSE_PDF_SHARED_API void set_StrikeOut (bool value)
 Sets strikeout for the text, represented by the TextSegment object More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_BackgroundColor ()
 Sets background color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_BackgroundColor (System::SharedPtr< Color > value)
 Sets background color of the text. More...
 
virtual ASPOSE_PDF_SHARED_API FontStyles get_FontStyle ()
 Sets font style of the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_FontStyle (FontStyles value)
 Sets font style of the text. More...
 
virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment get_HorizontalAlignment ()
 Gets horizontal alignment for the text. More...
 
virtual ASPOSE_PDF_SHARED_API void set_HorizontalAlignment (Aspose::Pdf::HorizontalAlignment value)
 Sets horizontal alignment for the text. More...
 
virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::CoordinateOrigin get_CoordinateOrigin ()
 Gets text CoordinateOrigin. If CoordinateOrigin is Descender, the text Y coordinate corresponds to the font's lowest point. If CoordinateOrigin is BaseLine, the text Y coordinate corresponds to the font's baseline. The default value is Descender. If the font's Descent value is too big, text can be rendered higher than other fonts. In this case, CoordinateOrigin BaseLine can be selected for better text rendering. More...
 
virtual ASPOSE_PDF_SHARED_API void set_CoordinateOrigin (Aspose::Pdf::Text::CoordinateOrigin value)
 Sets text CoordinateOrigin. If CoordinateOrigin is Descender, the text Y coordinate corresponds to the font's lowest point. If CoordinateOrigin is BaseLine, the text Y coordinate corresponds to the font's baseline. The default value is Descender. If the font's Descent value is too big, text can be rendered higher than other fonts. In this case, CoordinateOrigin BaseLine can be selected for better text rendering. More...
 
virtual ASPOSE_PDF_SHARED_API void ApplyChangesFrom (System::SharedPtr< TextState > textState)
 Applies settings from another textState. More...
 
ASPOSE_PDF_SHARED_API TextState ()
 Creates text state object. More...
 
virtual ASPOSE_PDF_SHARED_API double MeasureString (System::String str)
 Measures the string. More...
 
ASPOSE_PDF_SHARED_API double MeasureHeight (char16_t character)
 Measures character height. More...
 
ASPOSE_PDF_SHARED_API TextState (double fontSize)
 Creates text state object with font size specification. More...
 
ASPOSE_PDF_SHARED_API TextState (System::Drawing::Color foregroundColor)
 Creates text state object with foreground color specification. More...
 
ASPOSE_PDF_SHARED_API TextState (System::Drawing::Color foregroundColor, double fontSize)
 Creates text state object with foreground color and font size specification. More...
 
ASPOSE_PDF_SHARED_API TextState (System::String fontFamily)
 Creates text state object with font family specification. More...
 
ASPOSE_PDF_SHARED_API TextState (System::String fontFamily, bool bold, bool italic)
 Creates text state object with font family and font style specification. More...
 
ASPOSE_PDF_SHARED_API TextState (System::String fontFamily, double fontSize)
 Creates text state object with font family and font size specification. More...
 
- 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...
 

Public Attributes

System::String TabTag
 You can place this tag in text to declare tabulation. More...
 
float TabstopDefaultValue
 Default value of tabulation in widths of space character of default font. More...
 

Protected Types

enum  AttachState { AttachState::Detached, AttachState::Attached, AttachState::Attaching }
 Enum for attached state of the objects More...
 

Protected Member Functions

bool get_underline () const
 underline More...
 
void set_underline (bool value)
 underline More...
 
bool get_strikeout () const
 strikeout More...
 
void set_strikeout (bool value)
 strikeout More...
 
bool get_superscript () const
 superscript More...
 
void set_superscript (bool value)
 superscript More...
 
bool get_subscript () const
 subscript More...
 
void set_subscript (bool value)
 subscript More...
 
const System::SharedPtr< Color > & get_backgroundColor () const
 background color More...
 
void set_backgroundColor (System::SharedPtr< Color > value)
 background color More...
 
float get_characterSpacing () const
 character spacing More...
 
void set_characterSpacing (float value)
 character spacing More...
 
float get_lineSpacing () const
 character spacing More...
 
void set_lineSpacing (float value)
 character spacing More...
 
System::SharedPtr< Aspose::Pdf::Text::Fontget_font ()
 font More...
 
void set_font (System::SharedPtr< Aspose::Pdf::Text::Font > value)
 font More...
 
const System::SharedPtr< Matrix > & get_textMatrix () const
 text matrix More...
 
void set_textMatrix (System::SharedPtr< Matrix > value)
 text matrix More...
 
float get_wordSpacing () const
 word spacing More...
 
void set_wordSpacing (float value)
 word spacing More...
 
bool get_invisible () const
 text invisibility More...
 
void set_invisible (bool value)
 text invisibility More...
 
TextRenderingMode get_renderingMode () const
 text rendering mode More...
 
void set_renderingMode (TextRenderingMode value)
 text rendering mode More...
 
FontStyles get_fontStyle () const
 font style More...
 
void set_fontStyle (FontStyles value)
 font style More...
 
float get_fontSize () const
 font size More...
 
void set_fontSize (float value)
 font size More...
 
bool get_isTextWithPositions () const
 please don't set this, use IsTextWithPositions More...
 
void set_isTextWithPositions (bool value)
 please don't set this, use IsTextWithPositions More...
 
const System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double > > & get_adjustments () const
 please don't set this, use Adjustments More...
 
void set_adjustments (System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double >> value)
 please don't set this, use Adjustments More...
 
bool get_IsBackgroundColorSet ()
 
void set_IsBackgroundColorSet (bool value)
 
bool get_IsUnderlineSet ()
 
void set_IsUnderlineSet (bool value)
 
bool get_IsStrikeOutSet ()
 
void set_IsStrikeOutSet (bool value)
 
bool get_IsCharacterSpacingSet ()
 
void set_IsCharacterSpacingSet (bool value)
 
bool get_IsLineSpacingSet ()
 
void set_IsLineSpacingSet (bool value)
 
bool get_IsFontSet ()
 
void set_IsFontSet (bool value)
 
bool get_IsForegroundColorSet ()
 
void set_IsForegroundColorSet (bool value)
 
bool get_IsStrokingColorSet ()
 
void set_IsStrokingColorSet (bool value)
 
bool get_IsHorizontalScalingSet ()
 
void set_IsHorizontalScalingSet (bool value)
 
bool get_IsTextMatrixSet ()
 
void set_IsTextMatrixSet (bool value)
 
bool get_IsWordSpacingSet ()
 
void set_IsWordSpacingSet (bool value)
 
bool get_IsFontStyleSet ()
 
void set_IsFontStyleSet (bool value)
 
bool get_IsFontSizeSet ()
 
void set_IsFontSizeSet (bool value)
 
bool get_IsHorizontalAlignmentSet ()
 
void set_IsHorizontalAlignmentSet (bool value)
 
bool get_IsVerticalAlignmentSet ()
 
void set_IsVerticalAlignmentSet (bool value)
 
bool get_IsSubSuperscriptSet ()
 
void set_IsSubSuperscriptSet (bool value)
 
bool get_IsRenderingModeSet ()
 
void set_IsRenderingModeSet (bool value)
 
bool get_IsInvisibilitySet () const
 
void set_IsInvisibilitySet (bool value)
 
TextState::AttachState get_AttachedState () const
 the state is attached to real physical text segment More...
 
void set_AttachedState (TextState::AttachState value)
 the state is attached to real physical text segment More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Matrixget_TextMatrix ()
 
virtual ASPOSE_PDF_SHARED_API void set_TextMatrix (System::SharedPtr< Matrix > value)
 
virtual ASPOSE_PDF_SHARED_API bool get_IsTextWithPositions ()
 indicates whether TextWithPositions (TJ) operator must be used More...
 
virtual ASPOSE_PDF_SHARED_API void set_IsTextWithPositions (bool value)
 indicates whether TextWithPositions (TJ) operator must be used More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double > > get_Adjustments ()
 contains adjustments for TextWithPositions (TJ) operator More...
 
virtual ASPOSE_PDF_SHARED_API void set_Adjustments (System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double >> value)
 contains adjustments for TextWithPositions (TJ) operator More...
 
virtual ASPOSE_PDF_SHARED_API float get_TextHeight ()
 Gets text height. More...
 
virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment get_VerticalAlignment ()
 Gets vertical alignment for the text inside paragrph's Rectangle. More...
 
virtual ASPOSE_PDF_SHARED_API void set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value)
 Sets vertical alignment for the text inside paragrph's Rectangle. More...
 
System::SharedPtr< Colorget_foregroundColor () const
 foreground color More...
 
void set_foregroundColor (System::SharedPtr< Color > value)
 foreground color More...
 
System::SharedPtr< Colorget_strokingColor () const
 stroking color More...
 
void set_strokingColor (System::SharedPtr< Color > value)
 stroking color More...
 
float get_horizontalScaling () const
 horizontal spacing (100 is by default) More...
 
void set_horizontalScaling (float value)
 horizontal spacing (100 is by default) More...
 
double get_TabstopShift () const
 Tabstop shift of position of text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure. More...
 
void set_TabstopShift (double value)
 Tabstop shift of position of text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure. More...
 
double get_TabLeaderLength () const
 Length of tab leader before text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure. More...
 
void set_TabLeaderLength (double value)
 Length of tab leader before text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure. More...
 
Aspose::Pdf::Text::TabLeaderType get_TabLeaderType () const
 Type of tab leader before text segment. More...
 
void set_TabLeaderType (Aspose::Pdf::Text::TabLeaderType value)
 Type of tab leader before text segment. More...
 
int32_t get_SetFlags () const
 
void set_SetFlags (int32_t value)
 
bool get_IsDefault ()
 
void Attach (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextSegment > physicalSegment)
 
void Detach ()
 
System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor > ToEngineColorWithArea (System::SharedPtr< Color > color, System::SharedPtr< Rectangle > rect)
 
 TextState (System::SharedPtr< Color > backgroundColor, System::SharedPtr< Color > foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextState, CODEPORTING_ARGS(System::SharedPtr< Color > backgroundColor, System::SharedPtr< Color > foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize))
 
 TextState (System::Drawing::Color backgroundColor, System::Drawing::Color foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextState, CODEPORTING_ARGS(System::Drawing::Color backgroundColor, System::Drawing::Color foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize))
 
void SetColorWithArea (System::SharedPtr< Color > color, System::SharedPtr< Rectangle > rect)
 
void SetStrokingColorWithArea (System::SharedPtr< Color > color, System::SharedPtr< Rectangle > rect)
 
void UpdateUnderlineFromSource ()
 Searches for operators that used for orginizing text underline for current text block. If found it will be replaced for operators generated by our code. More...
 
 TextState (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextState > physicalState)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextState, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextState > physicalState))
 
virtual ASPOSE_PDF_SHARED_API double CalculateFontSize (System::String str, System::SharedPtr< Rectangle > rect)
 Calculates the font size for the rectangle. More...
 
 TextState (System::SharedPtr< TextSegment > textSegment)
 Copying constructor Copies properties from PhysicalTextState More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextState, CODEPORTING_ARGS(System::SharedPtr< TextSegment > textSegment))
 
void Serialize (System::SharedPtr< System::Xml::XmlTextWriter > writer, System::String tagName)
 
void Deserialize (System::SharedPtr< System::Xml::XmlReader > reader)
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< TextStateCopyPublicProperties ()
 
virtual ASPOSE_PDF_SHARED_API ~TextState ()
 

Static Protected Member Functions

static System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor > ToEngineColorCommon (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor > originalColor, System::SharedPtr< Color > color)
 
static System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor > ToEngineColor (System::SharedPtr< Color > color)
 
static System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::RGBColor > ColorToEngineRGB (System::SharedPtr< Color > color)
 
static System::SharedPtr< ColorEngineRGBToColor (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::RGBColor > color)
 
static System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::GrayColor > ColorToEngineGray (System::SharedPtr< Color > color)
 
static System::SharedPtr< ColorGrayToColor (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::GrayColor > color)
 
static System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::CMYKColor > ColorToEngineCMYK (System::SharedPtr< Color > color)
 
static System::SharedPtr< ColorCMYKToColor (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::CMYKColor > color)
 

Protected Attributes

System::EventHandler OnFontChanged
 
System::EventHandler OnFontSizeChanged
 

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...
 

Detailed Description

Represents a text state of a text

Member Enumeration Documentation

◆ AttachState

Enum for attached state of the objects

Enumerator
Detached 
Attached 
Attaching 

Constructor & Destructor Documentation

◆ TextState() [1/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( )

Creates text state object.

◆ TextState() [2/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( double  fontSize)

Creates text state object with font size specification.

Parameters
fontSizeFont size.

◆ TextState() [3/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( System::Drawing::Color  foregroundColor)

Creates text state object with foreground color specification.

Parameters
foregroundColorForeground color.

◆ TextState() [4/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( System::Drawing::Color  foregroundColor,
double  fontSize 
)

Creates text state object with foreground color and font size specification.

Parameters
foregroundColorForeground color.
fontSizeFont size.

◆ TextState() [5/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( System::String  fontFamily)

Creates text state object with font family specification.

Parameters
fontFamilyFont family.

◆ TextState() [6/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( System::String  fontFamily,
bool  bold,
bool  italic 
)

Creates text state object with font family and font style specification.

Parameters
fontFamilyFont family.
boldBold font style.
italicItalic font style.

◆ TextState() [7/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::TextState ( System::String  fontFamily,
double  fontSize 
)

Creates text state object with font family and font size specification.

Parameters
fontFamilyFont family.
fontSizeFont size.

◆ TextState() [8/11]

Aspose::Pdf::Text::TextState::TextState ( System::SharedPtr< Color backgroundColor,
System::SharedPtr< Color foregroundColor,
FontStyles  fontStyle,
System::SharedPtr< Aspose::Pdf::Text::Font font,
float  fontSize 
)
protected

◆ TextState() [9/11]

Aspose::Pdf::Text::TextState::TextState ( System::Drawing::Color  backgroundColor,
System::Drawing::Color  foregroundColor,
FontStyles  fontStyle,
System::SharedPtr< Aspose::Pdf::Text::Font font,
float  fontSize 
)
protected

◆ TextState() [10/11]

Aspose::Pdf::Text::TextState::TextState ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextState >  physicalState)
protected

◆ TextState() [11/11]

Aspose::Pdf::Text::TextState::TextState ( System::SharedPtr< TextSegment textSegment)
protected

Copying constructor Copies properties from PhysicalTextState

◆ ~TextState()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextState::~TextState ( )
protectedvirtual

Member Function Documentation

◆ ApplyChangesFrom()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::ApplyChangesFrom ( System::SharedPtr< TextState textState)
virtual

Applies settings from another textState.

Only those properties will be copied that were changed explicitly.

Parameters
textStateText state object.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ Attach()

void Aspose::Pdf::Text::TextState::Attach ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextSegment >  physicalSegment)
protected

◆ CalculateFontSize()

virtual ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextState::CalculateFontSize ( System::String  str,
System::SharedPtr< Rectangle rect 
)
protectedvirtual

Calculates the font size for the rectangle.

◆ CMYKToColor()

static System::SharedPtr<Color> Aspose::Pdf::Text::TextState::CMYKToColor ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::CMYKColor >  color)
staticprotected

◆ ColorToEngineCMYK()

static System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::CMYKColor> Aspose::Pdf::Text::TextState::ColorToEngineCMYK ( System::SharedPtr< Color color)
staticprotected

◆ ColorToEngineGray()

static System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::GrayColor> Aspose::Pdf::Text::TextState::ColorToEngineGray ( System::SharedPtr< Color color)
staticprotected

◆ ColorToEngineRGB()

static System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::RGBColor> Aspose::Pdf::Text::TextState::ColorToEngineRGB ( System::SharedPtr< Color color)
staticprotected

◆ CopyPublicProperties()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<TextState> Aspose::Pdf::Text::TextState::CopyPublicProperties ( )
protectedvirtual

◆ Deserialize()

void Aspose::Pdf::Text::TextState::Deserialize ( System::SharedPtr< System::Xml::XmlReader reader)
protected

◆ Detach()

void Aspose::Pdf::Text::TextState::Detach ( )
protected

◆ EngineRGBToColor()

static System::SharedPtr<Color> Aspose::Pdf::Text::TextState::EngineRGBToColor ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::RGBColor >  color)
staticprotected

◆ get_adjustments()

const System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, double> >& Aspose::Pdf::Text::TextState::get_adjustments ( ) const
protected

please don't set this, use Adjustments

◆ get_Adjustments()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, double> > Aspose::Pdf::Text::TextState::get_Adjustments ( )
protectedvirtual

contains adjustments for TextWithPositions (TJ) operator

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_AttachedState()

TextState::AttachState Aspose::Pdf::Text::TextState::get_AttachedState ( ) const
protected

the state is attached to real physical text segment

◆ get_BackgroundColor()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextState::get_BackgroundColor ( )
virtual

Sets background color of the text.

Note that the value is not preserved as a text characteristic within the document. The BackgroundColor property getter works for an object in case it was explicitly set previously with BackgroundColor setter for those object.

The property is used by runtime in context of current generation/modification process.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_backgroundColor()

const System::SharedPtr<Color>& Aspose::Pdf::Text::TextState::get_backgroundColor ( ) const
protected

background color

◆ get_CharacterSpacing()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_CharacterSpacing ( )
virtual

Gets character spacing of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_characterSpacing()

float Aspose::Pdf::Text::TextState::get_characterSpacing ( ) const
protected

character spacing

◆ get_CoordinateOrigin()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::CoordinateOrigin Aspose::Pdf::Text::TextState::get_CoordinateOrigin ( )
virtual

Gets text CoordinateOrigin. If CoordinateOrigin is Descender, the text Y coordinate corresponds to the font's lowest point. If CoordinateOrigin is BaseLine, the text Y coordinate corresponds to the font's baseline. The default value is Descender. If the font's Descent value is too big, text can be rendered higher than other fonts. In this case, CoordinateOrigin BaseLine can be selected for better text rendering.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_Font()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::Font> Aspose::Pdf::Text::TextState::get_Font ( )
virtual

Gets font of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_font()

System::SharedPtr<Aspose::Pdf::Text::Font> Aspose::Pdf::Text::TextState::get_font ( )
protected

font

◆ get_FontSize()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_FontSize ( )
virtual

Gets font size of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_fontSize()

float Aspose::Pdf::Text::TextState::get_fontSize ( ) const
protected

font size

◆ get_FontStyle()

virtual ASPOSE_PDF_SHARED_API FontStyles Aspose::Pdf::Text::TextState::get_FontStyle ( )
virtual

Sets font style of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_fontStyle()

FontStyles Aspose::Pdf::Text::TextState::get_fontStyle ( ) const
protected

font style

◆ get_ForegroundColor()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextState::get_ForegroundColor ( )
virtual

Gets foreground color of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_foregroundColor()

System::SharedPtr<Color> Aspose::Pdf::Text::TextState::get_foregroundColor ( ) const
protected

foreground color

◆ get_HorizontalAlignment()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment Aspose::Pdf::Text::TextState::get_HorizontalAlignment ( )
virtual

Gets horizontal alignment for the text.

HorizontalAlignment.None is equal to HorizontalAlignment.Left.

Note that TextState.HorizontalAlignment property works in new document generation scenarios only.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_HorizontalScaling()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_HorizontalScaling ( )
virtual

Gets horizontal scaling of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_horizontalScaling()

float Aspose::Pdf::Text::TextState::get_horizontalScaling ( ) const
protected

horizontal spacing (100 is by default)

◆ get_Invisible()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_Invisible ( )
virtual

Gets the invisibility of text. This basically reflects the RenderingMode state, except for some special cases (like clipping).

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_invisible()

bool Aspose::Pdf::Text::TextState::get_invisible ( ) const
protected

text invisibility

◆ get_IsBackgroundColorSet()

bool Aspose::Pdf::Text::TextState::get_IsBackgroundColorSet ( )
protected

◆ get_IsCharacterSpacingSet()

bool Aspose::Pdf::Text::TextState::get_IsCharacterSpacingSet ( )
protected

◆ get_IsDefault()

bool Aspose::Pdf::Text::TextState::get_IsDefault ( )
protected

◆ get_IsFontSet()

bool Aspose::Pdf::Text::TextState::get_IsFontSet ( )
protected

◆ get_IsFontSizeSet()

bool Aspose::Pdf::Text::TextState::get_IsFontSizeSet ( )
protected

◆ get_IsFontStyleSet()

bool Aspose::Pdf::Text::TextState::get_IsFontStyleSet ( )
protected

◆ get_IsForegroundColorSet()

bool Aspose::Pdf::Text::TextState::get_IsForegroundColorSet ( )
protected

◆ get_IsHorizontalAlignmentSet()

bool Aspose::Pdf::Text::TextState::get_IsHorizontalAlignmentSet ( )
protected

◆ get_IsHorizontalScalingSet()

bool Aspose::Pdf::Text::TextState::get_IsHorizontalScalingSet ( )
protected

◆ get_IsInvisibilitySet()

bool Aspose::Pdf::Text::TextState::get_IsInvisibilitySet ( ) const
protected

◆ get_IsLineSpacingSet()

bool Aspose::Pdf::Text::TextState::get_IsLineSpacingSet ( )
protected

◆ get_IsRenderingModeSet()

bool Aspose::Pdf::Text::TextState::get_IsRenderingModeSet ( )
protected

◆ get_IsStrikeOutSet()

bool Aspose::Pdf::Text::TextState::get_IsStrikeOutSet ( )
protected

◆ get_IsStrokingColorSet()

bool Aspose::Pdf::Text::TextState::get_IsStrokingColorSet ( )
protected

◆ get_IsSubSuperscriptSet()

bool Aspose::Pdf::Text::TextState::get_IsSubSuperscriptSet ( )
protected

◆ get_IsTextMatrixSet()

bool Aspose::Pdf::Text::TextState::get_IsTextMatrixSet ( )
protected

◆ get_isTextWithPositions()

bool Aspose::Pdf::Text::TextState::get_isTextWithPositions ( ) const
protected

please don't set this, use IsTextWithPositions

◆ get_IsTextWithPositions()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_IsTextWithPositions ( )
protectedvirtual

indicates whether TextWithPositions (TJ) operator must be used

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_IsUnderlineSet()

bool Aspose::Pdf::Text::TextState::get_IsUnderlineSet ( )
protected

◆ get_IsVerticalAlignmentSet()

bool Aspose::Pdf::Text::TextState::get_IsVerticalAlignmentSet ( )
protected

◆ get_IsWordSpacingSet()

bool Aspose::Pdf::Text::TextState::get_IsWordSpacingSet ( )
protected

◆ get_LineSpacing()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_LineSpacing ( )
virtual

Gets line spacing of the text.

Note that the value is not preserved as a text characteristic within the document. The LineSpacing property getter works for an object in case it was explicitly set previously with LineSpacing setter for those object.

The property is used by runtime in context of current generation/modification process.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_lineSpacing()

float Aspose::Pdf::Text::TextState::get_lineSpacing ( ) const
protected

character spacing

◆ get_RenderingMode()

virtual ASPOSE_PDF_SHARED_API TextRenderingMode Aspose::Pdf::Text::TextState::get_RenderingMode ( )
virtual

Gets rendering mode of text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_renderingMode()

TextRenderingMode Aspose::Pdf::Text::TextState::get_renderingMode ( ) const
protected

text rendering mode

◆ get_SetFlags()

int32_t Aspose::Pdf::Text::TextState::get_SetFlags ( ) const
protected

◆ get_StrikeOut()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_StrikeOut ( )
virtual

Gets strikeout for the text, represented by the TextSegment object

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_strikeout()

bool Aspose::Pdf::Text::TextState::get_strikeout ( ) const
protected

strikeout

◆ get_StrokingColor()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextState::get_StrokingColor ( )
virtual

Gets foreground color of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_strokingColor()

System::SharedPtr<Color> Aspose::Pdf::Text::TextState::get_strokingColor ( ) const
protected

stroking color

◆ get_Subscript()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_Subscript ( )
virtual

Gets subscript of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_subscript()

bool Aspose::Pdf::Text::TextState::get_subscript ( ) const
protected

subscript

◆ get_Superscript()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_Superscript ( )
virtual

Gets superscript of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_superscript()

bool Aspose::Pdf::Text::TextState::get_superscript ( ) const
protected

superscript

◆ get_TabLeaderLength()

double Aspose::Pdf::Text::TextState::get_TabLeaderLength ( ) const
protected

Length of tab leader before text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure.

◆ get_TabLeaderType()

Aspose::Pdf::Text::TabLeaderType Aspose::Pdf::Text::TextState::get_TabLeaderType ( ) const
protected

Type of tab leader before text segment.

◆ get_TabstopShift()

double Aspose::Pdf::Text::TextState::get_TabstopShift ( ) const
protected

Tabstop shift of position of text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure.

◆ get_TextHeight()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_TextHeight ( )
protectedvirtual

Gets text height.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_textMatrix()

const System::SharedPtr<Matrix>& Aspose::Pdf::Text::TextState::get_textMatrix ( ) const
protected

text matrix

◆ get_TextMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Text::TextState::get_TextMatrix ( )
protectedvirtual

◆ get_Underline()

virtual ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextState::get_Underline ( )
virtual

Gets underline for the text, represented by the TextFragment object

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_underline()

bool Aspose::Pdf::Text::TextState::get_underline ( ) const
protected

underline

◆ get_VerticalAlignment()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment Aspose::Pdf::Text::TextState::get_VerticalAlignment ( )
protectedvirtual

Gets vertical alignment for the text inside paragrph's Rectangle.

VerticalAlignment.None is equal to VerticalAlignment.Bottom.

Note that TextState.VerticalAlignment property works in new document generation scenarios only.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_WordSpacing()

virtual ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextState::get_WordSpacing ( )
virtual

Gets word spacing of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ get_wordSpacing()

float Aspose::Pdf::Text::TextState::get_wordSpacing ( ) const
protected

word spacing

◆ GrayToColor()

static System::SharedPtr<Color> Aspose::Pdf::Text::TextState::GrayToColor ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::GrayColor >  color)
staticprotected

◆ MeasureHeight()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextState::MeasureHeight ( char16_t  character)

Measures character height.

Parameters
characterCharacter to measure.
Returns
Height of the character if we could get it from font; otherwise 0.

◆ MeasureString()

virtual ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextState::MeasureString ( System::String  str)
virtual

Measures the string.

Parameters
strThe string.
Returns
Width of the string represented with this text state.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/4]

Aspose::Pdf::Text::TextState::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TextState  ,
CODEPORTING_ARGS(System::SharedPtr< Color > backgroundColor, System::SharedPtr< Color > foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/4]

Aspose::Pdf::Text::TextState::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TextState  ,
CODEPORTING_ARGS(System::Drawing::Color backgroundColor, System::Drawing::Color foregroundColor, FontStyles fontStyle, System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/4]

Aspose::Pdf::Text::TextState::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TextState  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextState > physicalState)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/4]

Aspose::Pdf::Text::TextState::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TextState  ,
CODEPORTING_ARGS(System::SharedPtr< TextSegment > textSegment)   
)
protected

◆ Serialize()

void Aspose::Pdf::Text::TextState::Serialize ( System::SharedPtr< System::Xml::XmlTextWriter writer,
System::String  tagName 
)
protected

◆ set_adjustments()

void Aspose::Pdf::Text::TextState::set_adjustments ( System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double >>  value)
protected

please don't set this, use Adjustments

◆ set_Adjustments()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Adjustments ( System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double >>  value)
protectedvirtual

contains adjustments for TextWithPositions (TJ) operator

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_AttachedState()

void Aspose::Pdf::Text::TextState::set_AttachedState ( TextState::AttachState  value)
protected

the state is attached to real physical text segment

◆ set_BackgroundColor()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_BackgroundColor ( System::SharedPtr< Color value)
virtual

Sets background color of the text.

Note that the value is not preserved as a text characteristic within the document. The BackgroundColor property getter works for an object in case it was explicitly set previously with BackgroundColor setter for those object.

The property is used by runtime in context of current generation/modification process.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_backgroundColor()

void Aspose::Pdf::Text::TextState::set_backgroundColor ( System::SharedPtr< Color value)
protected

background color

◆ set_CharacterSpacing()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_CharacterSpacing ( float  value)
virtual

Sets character spacing of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_characterSpacing()

void Aspose::Pdf::Text::TextState::set_characterSpacing ( float  value)
protected

character spacing

◆ set_CoordinateOrigin()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_CoordinateOrigin ( Aspose::Pdf::Text::CoordinateOrigin  value)
virtual

Sets text CoordinateOrigin. If CoordinateOrigin is Descender, the text Y coordinate corresponds to the font's lowest point. If CoordinateOrigin is BaseLine, the text Y coordinate corresponds to the font's baseline. The default value is Descender. If the font's Descent value is too big, text can be rendered higher than other fonts. In this case, CoordinateOrigin BaseLine can be selected for better text rendering.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_Font()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Font ( System::SharedPtr< Aspose::Pdf::Text::Font value)
virtual

Sets font of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_font()

void Aspose::Pdf::Text::TextState::set_font ( System::SharedPtr< Aspose::Pdf::Text::Font value)
protected

font

◆ set_FontSize()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_FontSize ( float  value)
virtual

Sets font size of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_fontSize()

void Aspose::Pdf::Text::TextState::set_fontSize ( float  value)
protected

font size

◆ set_FontStyle()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_FontStyle ( FontStyles  value)
virtual

Sets font style of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_fontStyle()

void Aspose::Pdf::Text::TextState::set_fontStyle ( FontStyles  value)
protected

font style

◆ set_ForegroundColor()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_ForegroundColor ( System::SharedPtr< Color value)
virtual

Sets foreground color of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_foregroundColor()

void Aspose::Pdf::Text::TextState::set_foregroundColor ( System::SharedPtr< Color value)
protected

foreground color

◆ set_HorizontalAlignment()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_HorizontalAlignment ( Aspose::Pdf::HorizontalAlignment  value)
virtual

Sets horizontal alignment for the text.

HorizontalAlignment.None is equal to HorizontalAlignment.Left.

Note that TextState.HorizontalAlignment property works in new document generation scenarios only.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_HorizontalScaling()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_HorizontalScaling ( float  value)
virtual

Sets horizontal scaling of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_horizontalScaling()

void Aspose::Pdf::Text::TextState::set_horizontalScaling ( float  value)
protected

horizontal spacing (100 is by default)

◆ set_Invisible()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Invisible ( bool  value)
virtual

Sets the invisibility of text. This basically reflects the RenderingMode state, except for some special cases (like clipping).

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_invisible()

void Aspose::Pdf::Text::TextState::set_invisible ( bool  value)
protected

text invisibility

◆ set_IsBackgroundColorSet()

void Aspose::Pdf::Text::TextState::set_IsBackgroundColorSet ( bool  value)
protected

◆ set_IsCharacterSpacingSet()

void Aspose::Pdf::Text::TextState::set_IsCharacterSpacingSet ( bool  value)
protected

◆ set_IsFontSet()

void Aspose::Pdf::Text::TextState::set_IsFontSet ( bool  value)
protected

◆ set_IsFontSizeSet()

void Aspose::Pdf::Text::TextState::set_IsFontSizeSet ( bool  value)
protected

◆ set_IsFontStyleSet()

void Aspose::Pdf::Text::TextState::set_IsFontStyleSet ( bool  value)
protected

◆ set_IsForegroundColorSet()

void Aspose::Pdf::Text::TextState::set_IsForegroundColorSet ( bool  value)
protected

◆ set_IsHorizontalAlignmentSet()

void Aspose::Pdf::Text::TextState::set_IsHorizontalAlignmentSet ( bool  value)
protected

◆ set_IsHorizontalScalingSet()

void Aspose::Pdf::Text::TextState::set_IsHorizontalScalingSet ( bool  value)
protected

◆ set_IsInvisibilitySet()

void Aspose::Pdf::Text::TextState::set_IsInvisibilitySet ( bool  value)
protected

◆ set_IsLineSpacingSet()

void Aspose::Pdf::Text::TextState::set_IsLineSpacingSet ( bool  value)
protected

◆ set_IsRenderingModeSet()

void Aspose::Pdf::Text::TextState::set_IsRenderingModeSet ( bool  value)
protected

◆ set_IsStrikeOutSet()

void Aspose::Pdf::Text::TextState::set_IsStrikeOutSet ( bool  value)
protected

◆ set_IsStrokingColorSet()

void Aspose::Pdf::Text::TextState::set_IsStrokingColorSet ( bool  value)
protected

◆ set_IsSubSuperscriptSet()

void Aspose::Pdf::Text::TextState::set_IsSubSuperscriptSet ( bool  value)
protected

◆ set_IsTextMatrixSet()

void Aspose::Pdf::Text::TextState::set_IsTextMatrixSet ( bool  value)
protected

◆ set_isTextWithPositions()

void Aspose::Pdf::Text::TextState::set_isTextWithPositions ( bool  value)
protected

please don't set this, use IsTextWithPositions

◆ set_IsTextWithPositions()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_IsTextWithPositions ( bool  value)
protectedvirtual

indicates whether TextWithPositions (TJ) operator must be used

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_IsUnderlineSet()

void Aspose::Pdf::Text::TextState::set_IsUnderlineSet ( bool  value)
protected

◆ set_IsVerticalAlignmentSet()

void Aspose::Pdf::Text::TextState::set_IsVerticalAlignmentSet ( bool  value)
protected

◆ set_IsWordSpacingSet()

void Aspose::Pdf::Text::TextState::set_IsWordSpacingSet ( bool  value)
protected

◆ set_LineSpacing()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_LineSpacing ( float  value)
virtual

Sets line spacing of the text.

Note that the value is not preserved as a text characteristic within the document. The LineSpacing property getter works for an object in case it was explicitly set previously with LineSpacing setter for those object.

The property is used by runtime in context of current generation/modification process.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_lineSpacing()

void Aspose::Pdf::Text::TextState::set_lineSpacing ( float  value)
protected

character spacing

◆ set_RenderingMode()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_RenderingMode ( TextRenderingMode  value)
virtual

Sets rendering mode of text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_renderingMode()

void Aspose::Pdf::Text::TextState::set_renderingMode ( TextRenderingMode  value)
protected

text rendering mode

◆ set_SetFlags()

void Aspose::Pdf::Text::TextState::set_SetFlags ( int32_t  value)
protected

◆ set_StrikeOut()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_StrikeOut ( bool  value)
virtual

Sets strikeout for the text, represented by the TextSegment object

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_strikeout()

void Aspose::Pdf::Text::TextState::set_strikeout ( bool  value)
protected

strikeout

◆ set_StrokingColor()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_StrokingColor ( System::SharedPtr< Color value)
virtual

Sets foreground color of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_strokingColor()

void Aspose::Pdf::Text::TextState::set_strokingColor ( System::SharedPtr< Color value)
protected

stroking color

◆ set_Subscript()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Subscript ( bool  value)
virtual

Sets subscript of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_subscript()

void Aspose::Pdf::Text::TextState::set_subscript ( bool  value)
protected

subscript

◆ set_Superscript()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Superscript ( bool  value)
virtual

Sets superscript of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_superscript()

void Aspose::Pdf::Text::TextState::set_superscript ( bool  value)
protected

superscript

◆ set_TabLeaderLength()

void Aspose::Pdf::Text::TextState::set_TabLeaderLength ( double  value)
protected

Length of tab leader before text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure.

◆ set_TabLeaderType()

void Aspose::Pdf::Text::TextState::set_TabLeaderType ( Aspose::Pdf::Text::TabLeaderType  value)
protected

Type of tab leader before text segment.

◆ set_TabstopShift()

void Aspose::Pdf::Text::TextState::set_TabstopShift ( double  value)
protected

Tabstop shift of position of text segment. It is calculated by TextFragment. Shouldn't set it directly if you don't sure.

◆ set_textMatrix()

void Aspose::Pdf::Text::TextState::set_textMatrix ( System::SharedPtr< Matrix value)
protected

text matrix

◆ set_TextMatrix()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_TextMatrix ( System::SharedPtr< Matrix value)
protectedvirtual

◆ set_Underline()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_Underline ( bool  value)
virtual

Sets underline for the text, represented by the TextFragment object

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_underline()

void Aspose::Pdf::Text::TextState::set_underline ( bool  value)
protected

underline

◆ set_VerticalAlignment()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_VerticalAlignment ( Aspose::Pdf::VerticalAlignment  value)
protectedvirtual

Sets vertical alignment for the text inside paragrph's Rectangle.

VerticalAlignment.None is equal to VerticalAlignment.Bottom.

Note that TextState.VerticalAlignment property works in new document generation scenarios only.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_WordSpacing()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextState::set_WordSpacing ( float  value)
virtual

Sets word spacing of the text.

Reimplemented in Aspose::Pdf::Text::TextFragmentState.

◆ set_wordSpacing()

void Aspose::Pdf::Text::TextState::set_wordSpacing ( float  value)
protected

word spacing

◆ SetColorWithArea()

void Aspose::Pdf::Text::TextState::SetColorWithArea ( System::SharedPtr< Color color,
System::SharedPtr< Rectangle rect 
)
protected

◆ SetStrokingColorWithArea()

void Aspose::Pdf::Text::TextState::SetStrokingColorWithArea ( System::SharedPtr< Color color,
System::SharedPtr< Rectangle rect 
)
protected

◆ ToEngineColor()

static System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor> Aspose::Pdf::Text::TextState::ToEngineColor ( System::SharedPtr< Color color)
staticprotected

◆ ToEngineColorCommon()

static System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor> Aspose::Pdf::Text::TextState::ToEngineColorCommon ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor >  originalColor,
System::SharedPtr< Color color 
)
staticprotected

◆ ToEngineColorWithArea()

System::SharedPtr<Aspose::Pdf::Engine::CommonData::Graphics::Colors::IColor> Aspose::Pdf::Text::TextState::ToEngineColorWithArea ( System::SharedPtr< Color color,
System::SharedPtr< Rectangle rect 
)
protected

◆ UpdateUnderlineFromSource()

void Aspose::Pdf::Text::TextState::UpdateUnderlineFromSource ( )
protected

Searches for operators that used for orginizing text underline for current text block. If found it will be replaced for operators generated by our code.

Member Data Documentation

◆ OnFontChanged

System::EventHandler Aspose::Pdf::Text::TextState::OnFontChanged
protected

◆ OnFontSizeChanged

System::EventHandler Aspose::Pdf::Text::TextState::OnFontSizeChanged
protected

◆ TabstopDefaultValue

float Aspose::Pdf::Text::TextState::TabstopDefaultValue

Default value of tabulation in widths of space character of default font.

◆ TabTag

System::String Aspose::Pdf::Text::TextState::TabTag

You can place this tag in text to declare tabulation.

It has effect only in couple with TabStops.