|
ASPOSE_PDF_SHARED_API const System::SharedPtr< TextReplaceOptions > & | get_ReplaceOptions () const |
| Gets text replace options. The options define behavior when fragment text is replaced to more short/long. More...
|
|
ASPOSE_PDF_SHARED_API System::String | get_Text () |
| Gets System::String text object that the TextFragment object represents. More...
|
|
ASPOSE_PDF_SHARED_API void | set_Text (System::String value) |
| Sets System::String text object that the TextFragment object represents. More...
|
|
ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment | get_VerticalAlignment () override |
| Gets a vertical alignment of text fragment. More...
|
|
ASPOSE_PDF_SHARED_API void | set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value) override |
| Sets a vertical alignment of text fragment. More...
|
|
ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment | get_HorizontalAlignment () override |
| Gets a horizontal alignment of text fragment. More...
|
|
ASPOSE_PDF_SHARED_API void | set_HorizontalAlignment (Aspose::Pdf::HorizontalAlignment value) override |
| Sets a horizontal alignment of text fragment. More...
|
|
ASPOSE_PDF_SHARED_API void | set_Hyperlink (System::SharedPtr< Aspose::Pdf::Hyperlink > value) override |
| Sets the fragment hyperlink More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< TextFragmentState > | get_TextState () |
| Gets text state for the text that TextFragment object represents. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< TextSegmentCollection > | get_Segments () const |
| Gets text segments for current TextFragment. More...
|
|
ASPOSE_PDF_SHARED_API void | set_Segments (System::SharedPtr< TextSegmentCollection > value) |
| Gets text segments for current TextFragment. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::Position > | get_Position () |
| Gets text position for text, represented with TextFragment object. More...
|
|
ASPOSE_PDF_SHARED_API void | set_Position (System::SharedPtr< Aspose::Pdf::Text::Position > value) |
| Sets text position for text, represented with TextFragment object. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::Position > | get_BaselinePosition () |
| Gets text position for text, represented with TextFragment object. The YIndent of the Position structure represents baseline coordinate of the text fragment. More...
|
|
ASPOSE_PDF_SHARED_API void | set_BaselinePosition (System::SharedPtr< Aspose::Pdf::Text::Position > value) |
| Gets text position for text, represented with TextFragment object. The YIndent of the Position structure represents baseline coordinate of the text fragment. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Rectangle > | get_Rectangle () |
| Gets rectangle of the TextFragment More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Page > | get_Page () const |
| Gets page that contains the TextFragment More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< XForm > | get_Form () const |
| Gets form object that contains the TextFragment More...
|
|
ASPOSE_PDF_SHARED_API int32_t | get_WrapLinesCount () const |
| Gets wrap lines count for this paragraph(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API void | set_WrapLinesCount (int32_t value) |
| Sets wrap lines count for this paragraph(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Note > | get_EndNote () const |
| Gets the paragraph end note.(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API void | set_EndNote (System::SharedPtr< Note > value) |
| Sets the paragraph end note.(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< Note > | get_FootNote () const |
| Gets the paragraph foot note.(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API void | set_FootNote (System::SharedPtr< Note > value) |
| Sets the paragraph foot note.(for pdf generation only) More...
|
|
ASPOSE_PDF_SHARED_API | TextFragment () |
| Initializes new instance of the TextFragment object. More...
|
|
ASPOSE_PDF_SHARED_API | TextFragment (System::SharedPtr< TabStops > tabStops) |
| Initializes new instance of the TextFragment object with predefined TabStops positions. More...
|
|
ASPOSE_PDF_SHARED_API | TextFragment (System::String text) |
| Creates TextFragment object with single TextSegment object inside. Specifies text string inside the segment. More...
|
|
ASPOSE_PDF_SHARED_API | TextFragment (System::String text, System::SharedPtr< TabStops > tabStops) |
| Creates TextFragment object with single TextSegment object inside and predefined TabStops positions. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< TextSegmentCollection > | IsolateTextSegments (int32_t startIndex, int32_t length) |
| Gets TextSegment(s) representing specified part of the TextFragment text. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Object > | Clone () override |
| Clone the fragment. More...
|
|
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< System::Object > | CloneWithSegments () |
| Clone the fragment with all segments. More...
|
|
ASPOSE_PDF_SHARED_API System::SharedPtr< MarginInfo > | get_Margin () |
| Gets a outer margin for paragraph (for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API void | set_Margin (System::SharedPtr< MarginInfo > value) |
| Sets a outer margin for paragraph (for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API bool | get_IsFirstParagraphInColumn () const |
| Gets a bool value that indicates whether this paragraph will be at next column. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API void | set_IsFirstParagraphInColumn (bool value) |
| Sets a bool value that indicates whether this paragraph will be at next column. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API bool | get_IsKeptWithNext () const |
| Gets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API void | set_IsKeptWithNext (bool value) |
| Sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API bool | get_IsInNewPage () const |
| Gets a bool value that force this paragraph generates at new page. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API void | set_IsInNewPage (bool value) |
| Sets a bool value that force this paragraph generates at new page. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API bool | get_IsInLineParagraph () const |
| Gets a paragraph is inline. Default is false.(for pdf generation) More...
|
|
ASPOSE_PDF_SHARED_API void | set_IsInLineParagraph (bool value) |
| Sets a paragraph is inline. Default is false.(for pdf generation) More...
|
|
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Hyperlink > | get_Hyperlink () |
| Gets the fragment hyperlink(for pdf generator). More...
|
|
ASPOSE_PDF_SHARED_API int32_t | get_ZIndex () const |
| Gets a int value that indicates the Z-order of the graph. A graph with larger ZIndex will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative ZIndex will be placed behind the text in the page. More...
|
|
ASPOSE_PDF_SHARED_API void | set_ZIndex (int32_t value) |
| Sets a int value that indicates the Z-order of the graph. A graph with larger ZIndex will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative ZIndex will be placed behind the text in the page. More...
|
|
ASPOSE_PDF_SHARED_API | BaseParagraph () |
|
ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
ASPOSECPP_SHARED_API | Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value. More...
|
|
Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object. More...
|
|
int | SharedCount () const |
| Gets current value of shared reference counter. More...
|
|
ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual ASPOSECPP_SHARED_API String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
|
|
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. More...
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr. More...
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings. More...
|
|
|
Aspose::Pdf::Text::TextState::AttachState | get_AttachedState () const |
|
void | set_AttachedState (Aspose::Pdf::Text::TextState::AttachState value) |
|
ASPOSE_PDF_SHARED_API void | set_ReplaceOptions (System::SharedPtr< TextReplaceOptions > value) |
| Gets text replace options. The options define behavior when fragment text is replaced to more short/long. More...
|
|
System::String | get_McName () const |
|
int32_t | get_McId () const |
|
System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::SegmentsGroupState > | get_SegmentsGroupState () const |
|
void | set_SegmentsGroupState (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::SegmentsGroupState > value) |
|
ASPOSE_PDF_SHARED_API void | set_TextState (System::SharedPtr< TextFragmentState > value) |
| Sets text state for the text that TextFragment object represents. More...
|
|
System::SharedPtr< TextFragmentCollection > | get_Fragments () const |
| Gets collection that contains current fragment More...
|
|
void | set_Fragments (System::SharedPtr< TextFragmentCollection > value) |
| Sets collection that contains current fragment More...
|
|
ASPOSE_PDF_SHARED_API void | set_Rectangle (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
| Gets rectangle of the TextFragment More...
|
|
ASPOSE_PDF_SHARED_API void | set_Page (System::SharedPtr< Aspose::Pdf::Page > value) |
| Gets page that contains the TextFragment More...
|
|
System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter > | get_Segmenter () const |
| Gets TextSegmenter that was used for creation segments of this fragment. More...
|
|
bool | get_IsPositionChanged () const |
| Indicates whether position of the fragment is changed or default More...
|
|
void | SetEncodedTextProperties (System::SharedPtr< Font > font, System::String text, System::ArrayPtr< int32_t > indices) |
| Sets font and indices inside the font More...
|
|
void | Attach (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter > segmenter) |
| Attaches to the segmenter More...
|
|
void | IsolateToSingleSegment () |
| Isolates segments to single segment for simpler editing. More...
|
|
void | IsolateToText () |
| Isolates segments to segment that represent the text only. i.e. we Trim from beginning and end More...
|
|
System::SharedPtr< Aspose::Pdf::Rectangle > | ComputeUnderlineRectangle () |
|
System::ArrayPtr< System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextSegment > > | GetAttachedPhysicalSegmentsArray (int32_t &firstSegmentIndex, int32_t &lastSegmentIndex) |
|
void | ResetTabstops () |
|
bool | IsMultiline () |
| Indicates whether the fragment contains segments on different "text lines" More...
|
|
bool | IsMultilineOrSubscript () |
| Indicates whether the fragment contains segments on different "text lines" More...
|
|
| TextFragment (System::String text, System::SharedPtr< TextSegmentCollection > segments) |
|
| MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextFragment, CODEPORTING_ARGS(System::String text, System::SharedPtr< TextSegmentCollection > segments)) |
|
| TextFragment (System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter > segmenter, System::String text, System::SharedPtr< TextSegmentCollection > segments) |
|
| MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TextFragment, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter > segmenter, System::String text, System::SharedPtr< TextSegmentCollection > segments)) |
|
void | SyncVerticalAlignment (Aspose::Pdf::VerticalAlignment verticalAlignment) |
|
void | SyncHorizontalAlignment (Aspose::Pdf::HorizontalAlignment horizontalAlignment1) |
|
void | LightWeightTextSetter (System::String inText, TextFragment::SegmentAdjustmentMethod adjustmentMethod=Aspose::Pdf::Text::TextFragment::SegmentAdjustmentMethod::NoAdjustment) |
| Set text internally without paragraph recalculation. More...
|
|
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextSegment > > > | GetLineSegments (double x_indent, double y_indent, double angle) |
|
void | SetMarkedContentProperties (System::String name, int32_t id) |
|
void | Assign (System::SharedPtr< TextFragment > fragment) |
|
void | AssignWithSegments (System::SharedPtr< TextFragment > fragment) |
|
ASPOSE_PDF_SHARED_API void | Serialize (System::SharedPtr< System::Xml::XmlTextWriter > writer) override |
|
ASPOSE_PDF_SHARED_API void | Deserialize (System::SharedPtr< System::Xml::XmlReader > reader) override |
|
virtual ASPOSE_PDF_SHARED_API | ~TextFragment () |
|
System::String | get_Id () const |
| Gets a paragraph id. More...
|
|
void | set_Id (System::String value) |
| Sets a paragraph id. More...
|
|
const System::SharedPtr< Annotations::LinkAnnotation > & | get_ReferencedFrom () const |
| Gets the fragment hyperlink(for pdf generator internal use). More...
|
|
void | set_ReferencedFrom (System::SharedPtr< Annotations::LinkAnnotation > value) |
| Sets the fragment hyperlink(for pdf generator internal use). More...
|
|
void | ChangePosition (double &curX, double &curY, double newX, double newY, bool isNextParagraphInline) |
|
void | ProcessHyperlink (System::SharedPtr< Page > page, System::SharedPtr< Rectangle > rect) |
|
Represents fragment of Pdf text.
In a few words, TextFragment object contains list of TextSegment objects.
In details: Text of pdf document in Aspose::Pdf is represented by two basic objects: TextFragment and TextSegment
The differences between them is mostly context-dependent.
Let's consider following scenario. User searches text "hello world" to operate with it, change it's properties, look etc.
TextFragmentAbsorber absorber = new TextFragmentAbsorber("hello world");
doc.Pages[1].Accept(absorber);
Phisycally pdf text's representation is very complex. The text "hello world" may consist of several phisycally independent text segments.
The Aspose.Pdf text model basically establishes that TextFragment object provides single logic operation set over physical TextSegment objects set that represent user's query.
In text search scenario, TextFragment is logical "hello world" text representation, and TextSegment object collection represents all physical segments that construct "hello world" text object.
So, TextFragment is close to logical text representation. And TextSegment is close to physical text representation.
Obviously each TextSegment object may have it's own font, coloring, positioning properties.
TextFragment provides simple way to change text with it's properties: set font, set font size, set font color etc. Meanwhile TextSegment objects are accessible and users are able to operate with TextSegment objects independently.
Note that changing TextFragment properties may change inner 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 Segments collection unchanged, please change inner segments individually.