Aspose::Pdf::Text::TextFragmentState Class Referencefinal

Represents a text state of a text fragment. More...

#include "TextFragmentState.h"

Inherits Aspose::Pdf::Text::TextState.

Public Member Functions

ASPOSE_PDF_SHARED_API float get_CharacterSpacing () override
 Gets character spacing of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API void set_CharacterSpacing (float value) override
 Sets character spacing of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API float get_HorizontalScaling () override
 Gets horizontal scaling of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API void set_HorizontalScaling (float value) override
 Sets horizontal scaling of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API float get_WordSpacing () override
 Gets word spacing of the text. More...
 
ASPOSE_PDF_SHARED_API void set_WordSpacing (float value) override
 Sets word spacing of the text. More...
 
ASPOSE_PDF_SHARED_API bool get_Invisible () override
 Gets invisibility of the text. More...
 
ASPOSE_PDF_SHARED_API void set_Invisible (bool value) override
 Sets invisibility of the text. More...
 
ASPOSE_PDF_SHARED_API TextRenderingMode get_RenderingMode () override
 Gets rendering mode of the text. More...
 
ASPOSE_PDF_SHARED_API void set_RenderingMode (TextRenderingMode value) override
 Sets rendering mode of the text. More...
 
ASPOSE_PDF_SHARED_API bool get_Subscript () override
 Gets subscript of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API void set_Subscript (bool value) override
 Sets subscript of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API bool get_Superscript () override
 Gets superscript of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API void set_Superscript (bool value) override
 Sets superscript of the text, represented by the TextFragment object. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TabStopsget_TabStops () const
 Gets tabstops for the text. More...
 
ASPOSE_PDF_SHARED_API float get_LineSpacing () override
 Gets line spacing of the text. More...
 
ASPOSE_PDF_SHARED_API void set_LineSpacing (float value) override
 Sets line spacing of the text. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_ForegroundColor () override
 Gets foreground color of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_ForegroundColor (System::SharedPtr< Color > value) override
 Sets foreground color of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_StrokingColor () override
 Gets color stroking operations of TextFragment rendering (stroke text, rectangle border) More...
 
ASPOSE_PDF_SHARED_API void set_StrokingColor (System::SharedPtr< Color > value) override
 Sets color stroking operations of TextFragment rendering (stroke text, rectangle border) More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_BackgroundColor () override
 Sets background color of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_BackgroundColor (System::SharedPtr< Color > value) override
 Sets background color of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API bool get_Underline () override
 Gets underline for the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_Underline (bool value) override
 Sets underline for the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API bool get_StrikeOut () override
 Gets strikeout for the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_StrikeOut (bool value) override
 Sets strikeout for the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API FontStyles get_FontStyle () override
 Sets font style of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_FontStyle (FontStyles value) override
 Sets font style of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::Fontget_Font () override
 Gets font of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_Font (System::SharedPtr< Aspose::Pdf::Text::Font > value) override
 Sets font of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API float get_FontSize () override
 Gets font size of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API void set_FontSize (float value) override
 Sets font size of the text, represented by the TextFragment object More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment get_HorizontalAlignment () override
 Gets horizontal alignment for the text. More...
 
ASPOSE_PDF_SHARED_API void set_HorizontalAlignment (Aspose::Pdf::HorizontalAlignment value) override
 Sets horizontal alignment for the text. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< TextFormattingOptionsget_FormattingOptions () const
 Gets formatting options. Setting of the options will be effective in generator scenarios only. More...
 
ASPOSE_PDF_SHARED_API void set_FormattingOptions (System::SharedPtr< TextFormattingOptions > value)
 Sets formatting options. Setting of the options will be effective in generator scenarios only. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::CoordinateOrigin get_CoordinateOrigin () override
 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...
 
ASPOSE_PDF_SHARED_API void set_CoordinateOrigin (Aspose::Pdf::Text::CoordinateOrigin value) override
 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...
 
ASPOSE_PDF_SHARED_API double get_Rotation ()
 Gets rotation angle in degrees. More...
 
ASPOSE_PDF_SHARED_API void set_Rotation (double value)
 Sets rotation angle in degrees. More...
 
ASPOSE_PDF_SHARED_API bool get_DrawTextRectangleBorder () const
 Gets if text rectangle border drawn flag. More...
 
ASPOSE_PDF_SHARED_API void set_DrawTextRectangleBorder (bool value)
 Sets if text rectangle border drawn flag. More...
 
ASPOSE_PDF_SHARED_API double MeasureString (System::String str) override
 Measures the string. More...
 
ASPOSE_PDF_SHARED_API double MeasureHeight (char16_t character)
 Measures character height. More...
 
ASPOSE_PDF_SHARED_API TextFragmentState (System::SharedPtr< TextFragment > fragment)
 Initializes new instance of the TextFragmentState object with specified TextFragment object. This TextFragmentState initialization is not supported. TextFragmentState is only available with TextFragment::TextState property. More...
 
ASPOSE_PDF_SHARED_API void ApplyChangesFrom (System::SharedPtr< TextState > textState) override
 Applies settings from another textState. More...
 
ASPOSE_PDF_SHARED_API bool IsFitRectangle (System::String str, System::SharedPtr< Rectangle > rect)
 Checks if input string could be placed inside defined rectangle. More...
 
- Public Member Functions inherited from Aspose::Pdf::Text::TextState
ASPOSE_PDF_SHARED_API TextState ()
 Creates text state object. 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...
 

Protected Member Functions

const System::SharedPtr< TextFragment > & get_Fragment () const
 
void set_Fragment (System::SharedPtr< TextFragment > value)
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Matrixget_TextMatrix () override
 
ASPOSE_PDF_SHARED_API void set_TextMatrix (System::SharedPtr< Matrix > value) override
 
ASPOSE_PDF_SHARED_API bool get_IsTextWithPositions () override
 indicates whether TextWithPositions (TJ) operator must be used More...
 
ASPOSE_PDF_SHARED_API void set_IsTextWithPositions (bool value) override
 indicates whether TextWithPositions (TJ) operator must be used More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double > > get_Adjustments () override
 contains adjustments for TextWithPositions (TJ) operator More...
 
ASPOSE_PDF_SHARED_API void set_Adjustments (System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, double >> value) override
 contains adjustments for TextWithPositions (TJ) operator More...
 
bool get_IsBBoxFontSizeCoefficientApplied () const
 Gets / sets a value indicates that text bounding box height will be enlarged by PhysicalTextSegment.BBoxFontSizeCoefficient. Default is true. Please don't change this default. Set value to false to avoide text rectangle intersection with nearest objects in the case of problems. More...
 
void set_IsBBoxFontSizeCoefficientApplied (bool value)
 Gets / sets a value indicates that text bounding box height will be enlarged by PhysicalTextSegment.BBoxFontSizeCoefficient. Default is true. Please don't change this default. Set value to false to avoide text rectangle intersection with nearest objects in the case of problems. More...
 
bool get_IsSingleState () const
 Gets a value that indicates that all child TextSegment objects have the same state (font, font size, foreground color etc.) Not supported yet. More...
 
ASPOSE_PDF_SHARED_API void set_TabStops (System::SharedPtr< Aspose::Pdf::Text::TabStops > value)
 Gets tabstops for the text. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment get_VerticalAlignment () override
 Gets vertical alignment for the text inside paragrph's Rectangle. More...
 
ASPOSE_PDF_SHARED_API void set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value) override
 Sets vertical alignment for the text inside paragrph's Rectangle. More...
 
ASPOSE_PDF_SHARED_API float get_TextHeight () override
 Gets text height, represented by the TextFragment object More...
 
void ApplyChangesFrom (System::SharedPtr< TextState > textState, bool groupChangesOnly)
 Applies settings from another textState More...
 
void Attach (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter > segmenter)
 
void SyncVerticalAlignment (Aspose::Pdf::VerticalAlignment verticalAlignment)
 
void SyncHorizontalAlignment (Aspose::Pdf::HorizontalAlignment horizontalAlignment)
 
void Disconnect ()
 
ASPOSE_PDF_SHARED_API System::SharedPtr< TextStateCopyPublicProperties () override
 
- Protected Member Functions inherited from Aspose::Pdf::Text::TextState
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...
 
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 ~TextState ()
 

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...
 
- Public Attributes inherited from Aspose::Pdf::Text::TextState
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 inherited from Aspose::Pdf::Text::TextState
enum  AttachState { AttachState::Detached, AttachState::Attached, AttachState::Attaching }
 Enum for attached state of the objects More...
 
- Static Protected Member Functions inherited from Aspose::Pdf::Text::TextState
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 inherited from Aspose::Pdf::Text::TextState
System::EventHandler OnFontChanged
 
System::EventHandler OnFontSizeChanged
 

Detailed Description

Represents a text state of a text fragment.

Provides a way to change following properties of the text: font (TextFragmentState::Font property) font size (TextFragmentState::FontSize property) font style (TextFragmentState::FontStyle property) foreground color (TextFragmentState::ForegroundColor property) background color (TextFragmentState::BackgroundColor property)

Note that changing TextFragmentState properties may change inner TextFragment::Segments collection because TextFragment is an aggregate object and it may rearrange internal segments or merge them into single segment. If your requirement is to leave the TextFragment::Segments collection unchanged, please change inner segments individually.

See also
TextFragmentAbsorber
See also
Document

Constructor & Destructor Documentation

◆ TextFragmentState()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::TextFragmentState::TextFragmentState ( System::SharedPtr< TextFragment fragment)

Initializes new instance of the TextFragmentState object with specified TextFragment object. This TextFragmentState initialization is not supported. TextFragmentState is only available with TextFragment::TextState property.

Parameters
fragmentText fragment object.

Member Function Documentation

◆ ApplyChangesFrom() [1/2]

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

Applies settings from another textState.

Only those properties will be copied that were changed explicitly.

Parameters
textStateText state object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ ApplyChangesFrom() [2/2]

void Aspose::Pdf::Text::TextFragmentState::ApplyChangesFrom ( System::SharedPtr< TextState textState,
bool  groupChangesOnly 
)
protected

Applies settings from another textState

Parameters
textStateText state object.
groupChangesOnlyif true inherit group changes only (without isolating the segments into single segment)

◆ Attach()

void Aspose::Pdf::Text::TextFragmentState::Attach ( System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter >  segmenter)
protected

◆ CopyPublicProperties()

ASPOSE_PDF_SHARED_API System::SharedPtr<TextState> Aspose::Pdf::Text::TextFragmentState::CopyPublicProperties ( )
overrideprotectedvirtual

Reimplemented from Aspose::Pdf::Text::TextState.

◆ Disconnect()

void Aspose::Pdf::Text::TextFragmentState::Disconnect ( )
protected

◆ get_Adjustments()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, double> > Aspose::Pdf::Text::TextFragmentState::get_Adjustments ( )
overrideprotectedvirtual

contains adjustments for TextWithPositions (TJ) operator

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_BackgroundColor()

ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextFragmentState::get_BackgroundColor ( )
overridevirtual

Sets background color of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_CharacterSpacing()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_CharacterSpacing ( )
overridevirtual

Gets character spacing of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_CoordinateOrigin()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Text::CoordinateOrigin Aspose::Pdf::Text::TextFragmentState::get_CoordinateOrigin ( )
overridevirtual

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 from Aspose::Pdf::Text::TextState.

◆ get_DrawTextRectangleBorder()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_DrawTextRectangleBorder ( ) const

Gets if text rectangle border drawn flag.

◆ get_Font()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::Font> Aspose::Pdf::Text::TextFragmentState::get_Font ( )
overridevirtual

Gets font of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_FontSize()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_FontSize ( )
overridevirtual

Gets font size of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_FontStyle()

ASPOSE_PDF_SHARED_API FontStyles Aspose::Pdf::Text::TextFragmentState::get_FontStyle ( )
overridevirtual

Sets font style of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_ForegroundColor()

ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextFragmentState::get_ForegroundColor ( )
overridevirtual

Gets foreground color of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_FormattingOptions()

ASPOSE_PDF_SHARED_API System::SharedPtr<TextFormattingOptions> Aspose::Pdf::Text::TextFragmentState::get_FormattingOptions ( ) const

Gets formatting options. Setting of the options will be effective in generator scenarios only.

◆ get_Fragment()

const System::SharedPtr<TextFragment>& Aspose::Pdf::Text::TextFragmentState::get_Fragment ( ) const
protected

◆ get_HorizontalAlignment()

ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment Aspose::Pdf::Text::TextFragmentState::get_HorizontalAlignment ( )
overridevirtual

Gets horizontal alignment for the text.

HorizontalAlignment.None is equal to HorizontalAlignment.Left.

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

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_HorizontalScaling()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_HorizontalScaling ( )
overridevirtual

Gets horizontal scaling of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_Invisible()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_Invisible ( )
overridevirtual

Gets invisibility of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_IsBBoxFontSizeCoefficientApplied()

bool Aspose::Pdf::Text::TextFragmentState::get_IsBBoxFontSizeCoefficientApplied ( ) const
protected

Gets / sets a value indicates that text bounding box height will be enlarged by PhysicalTextSegment.BBoxFontSizeCoefficient. Default is true. Please don't change this default. Set value to false to avoide text rectangle intersection with nearest objects in the case of problems.

◆ get_IsSingleState()

bool Aspose::Pdf::Text::TextFragmentState::get_IsSingleState ( ) const
protected

Gets a value that indicates that all child TextSegment objects have the same state (font, font size, foreground color etc.) Not supported yet.

◆ get_IsTextWithPositions()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_IsTextWithPositions ( )
overrideprotectedvirtual

indicates whether TextWithPositions (TJ) operator must be used

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_LineSpacing()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_LineSpacing ( )
overridevirtual

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 from Aspose::Pdf::Text::TextState.

◆ get_RenderingMode()

ASPOSE_PDF_SHARED_API TextRenderingMode Aspose::Pdf::Text::TextFragmentState::get_RenderingMode ( )
overridevirtual

Gets rendering mode of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_Rotation()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextFragmentState::get_Rotation ( )

Gets rotation angle in degrees.

◆ get_StrikeOut()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_StrikeOut ( )
overridevirtual

Gets strikeout for the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_StrokingColor()

ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Text::TextFragmentState::get_StrokingColor ( )
overridevirtual

Gets color stroking operations of TextFragment rendering (stroke text, rectangle border)

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_Subscript()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_Subscript ( )
overridevirtual

Gets subscript of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_Superscript()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_Superscript ( )
overridevirtual

Gets superscript of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_TabStops()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TabStops> Aspose::Pdf::Text::TextFragmentState::get_TabStops ( ) const

Gets tabstops for the text.

Note that Tabstops property works in new document generation scenarios only. Tabstops may be added during TextFragment initialization. Tabstops must be constructed before the text.

◆ get_TextHeight()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_TextHeight ( )
overrideprotectedvirtual

Gets text height, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_TextMatrix()

ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Text::TextFragmentState::get_TextMatrix ( )
overrideprotectedvirtual

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_Underline()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::get_Underline ( )
overridevirtual

Gets underline for the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_VerticalAlignment()

ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment Aspose::Pdf::Text::TextFragmentState::get_VerticalAlignment ( )
overrideprotectedvirtual

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

VerticalAlignment.None is equal to VerticalAlignment.Bottom.

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

Reimplemented from Aspose::Pdf::Text::TextState.

◆ get_WordSpacing()

ASPOSE_PDF_SHARED_API float Aspose::Pdf::Text::TextFragmentState::get_WordSpacing ( )
overridevirtual

Gets word spacing of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ IsFitRectangle()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Text::TextFragmentState::IsFitRectangle ( System::String  str,
System::SharedPtr< Rectangle rect 
)

Checks if input string could be placed inside defined rectangle.

Parameters
strString to check.
rectRectangle to check.
Returns
True if string fit rectangle; otherwise false.

◆ MeasureHeight()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextFragmentState::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()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Text::TextFragmentState::MeasureString ( System::String  str)
overridevirtual

Measures the string.

Parameters
strThe string.
Returns
Width of the string.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Adjustments()

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

contains adjustments for TextWithPositions (TJ) operator

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_BackgroundColor()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_BackgroundColor ( System::SharedPtr< Color value)
overridevirtual

Sets background color of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_CharacterSpacing()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_CharacterSpacing ( float  value)
overridevirtual

Sets character spacing of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_CoordinateOrigin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_CoordinateOrigin ( Aspose::Pdf::Text::CoordinateOrigin  value)
overridevirtual

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 from Aspose::Pdf::Text::TextState.

◆ set_DrawTextRectangleBorder()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_DrawTextRectangleBorder ( bool  value)

Sets if text rectangle border drawn flag.

◆ set_Font()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Font ( System::SharedPtr< Aspose::Pdf::Text::Font value)
overridevirtual

Sets font of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_FontSize()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_FontSize ( float  value)
overridevirtual

Sets font size of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_FontStyle()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_FontStyle ( FontStyles  value)
overridevirtual

Sets font style of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_ForegroundColor()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_ForegroundColor ( System::SharedPtr< Color value)
overridevirtual

Sets foreground color of the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_FormattingOptions()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_FormattingOptions ( System::SharedPtr< TextFormattingOptions value)

Sets formatting options. Setting of the options will be effective in generator scenarios only.

◆ set_Fragment()

void Aspose::Pdf::Text::TextFragmentState::set_Fragment ( System::SharedPtr< TextFragment value)
protected

◆ set_HorizontalAlignment()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_HorizontalAlignment ( Aspose::Pdf::HorizontalAlignment  value)
overridevirtual

Sets horizontal alignment for the text.

HorizontalAlignment.None is equal to HorizontalAlignment.Left.

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

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_HorizontalScaling()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_HorizontalScaling ( float  value)
overridevirtual

Sets horizontal scaling of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Invisible()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Invisible ( bool  value)
overridevirtual

Sets invisibility of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_IsBBoxFontSizeCoefficientApplied()

void Aspose::Pdf::Text::TextFragmentState::set_IsBBoxFontSizeCoefficientApplied ( bool  value)
protected

Gets / sets a value indicates that text bounding box height will be enlarged by PhysicalTextSegment.BBoxFontSizeCoefficient. Default is true. Please don't change this default. Set value to false to avoide text rectangle intersection with nearest objects in the case of problems.

◆ set_IsTextWithPositions()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_IsTextWithPositions ( bool  value)
overrideprotectedvirtual

indicates whether TextWithPositions (TJ) operator must be used

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_LineSpacing()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_LineSpacing ( float  value)
overridevirtual

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 from Aspose::Pdf::Text::TextState.

◆ set_RenderingMode()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_RenderingMode ( TextRenderingMode  value)
overridevirtual

Sets rendering mode of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Rotation()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Rotation ( double  value)

Sets rotation angle in degrees.

◆ set_StrikeOut()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_StrikeOut ( bool  value)
overridevirtual

Sets strikeout for the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_StrokingColor()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_StrokingColor ( System::SharedPtr< Color value)
overridevirtual

Sets color stroking operations of TextFragment rendering (stroke text, rectangle border)

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Subscript()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Subscript ( bool  value)
overridevirtual

Sets subscript of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Superscript()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Superscript ( bool  value)
overridevirtual

Sets superscript of the text, represented by the TextFragment object.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_TabStops()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_TabStops ( System::SharedPtr< Aspose::Pdf::Text::TabStops value)
protected

Gets tabstops for the text.

Note that Tabstops property works in new document generation scenarios only. Tabstops may be added during TextFragment initialization. Tabstops must be constructed before the text.

◆ set_TextMatrix()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_TextMatrix ( System::SharedPtr< Matrix value)
overrideprotectedvirtual

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_Underline()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_Underline ( bool  value)
overridevirtual

Sets underline for the text, represented by the TextFragment object

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_VerticalAlignment()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_VerticalAlignment ( Aspose::Pdf::VerticalAlignment  value)
overrideprotectedvirtual

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

VerticalAlignment.None is equal to VerticalAlignment.Bottom.

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

Reimplemented from Aspose::Pdf::Text::TextState.

◆ set_WordSpacing()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Text::TextFragmentState::set_WordSpacing ( float  value)
overridevirtual

Sets word spacing of the text.

Reimplemented from Aspose::Pdf::Text::TextState.

◆ SyncHorizontalAlignment()

void Aspose::Pdf::Text::TextFragmentState::SyncHorizontalAlignment ( Aspose::Pdf::HorizontalAlignment  horizontalAlignment)
protected

◆ SyncVerticalAlignment()

void Aspose::Pdf::Text::TextFragmentState::SyncVerticalAlignment ( Aspose::Pdf::VerticalAlignment  verticalAlignment)
protected