24.10.2014 Views

TMS iCL DEVELOPERS GUIDE - TMS Software

TMS iCL DEVELOPERS GUIDE - TMS Software

TMS iCL DEVELOPERS GUIDE - TMS Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TMS</strong> SOFTWARE<br />

<strong>TMS</strong> <strong>iCL</strong><br />

<strong>DEVELOPERS</strong> <strong>GUIDE</strong><br />

URLs in the text view. When clicked, the text<br />

view opens the application responsible for<br />

handling the URL type and passes it the URL.<br />

Public Properties<br />

Selection: T<strong>TMS</strong>FMXNativeRichTextLibRange<br />

DataText: string (supported from iOS 6)<br />

Gets and Sets the selection on the TextView.<br />

Selection is a record of text character position<br />

and length of selection in number of characters.<br />

Gets and Sets a compatible Archived XML String<br />

that can be used to persist the rich text<br />

contents of the TextView.<br />

Public Methods<br />

Each getter and setter of a specific attribute has optional parameters to apply the attribute value<br />

to text at a specific position and length inside the TextView. If the parameters are not specified,<br />

the value is applied to the selected text. Below is an example of setting a bold text:<br />

//apply bold to the selected text<br />

<strong>TMS</strong>FMXNativeUIRichTextView1.SetBold(True);<br />

//apply bold to the text at position 5 with a length of 3<br />

<strong>TMS</strong>FMXNativeUIRichTextView1.SetBold(True, 5, 3);<br />

Important note: Not all functionality that is listed below is supported on iOS versions earlier<br />

than iOS 7. Functionality that is only supported on iOS 7 and later is marked.<br />

AddBitmap(AValue: TBitmap; ALineHeight:<br />

Integer = -1; ALocation: Integer = -1);<br />

AddBitmapFromFile(AValue: String;<br />

ALineHeight: integer –1; ALocation: Integer = -<br />

1);<br />

108<br />

Inserts a bitmap in the TextView. By default,<br />

the lineheight is adapted to the bitmap height<br />

but can be overridden by setting ALineHeight<br />

parameter > -1. Also, by default, the bitmap is<br />

inserted at selection, unless the ALocation<br />

parameter is different than -1 and sets the<br />

insert character position.<br />

Inserts a bitmap from file in the TextView. By<br />

default, the lineheight is adapted to the bitmap<br />

height but can be overridden by setting<br />

ALineHeight parameter > -1. Also, by default,<br />

the bitmap is inserted at selection, unless the<br />

ALocation parameter is different than -1 and

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!