Method CreateReadonlyTextFragment
CreateReadonlyTextFragment(int, int)
Creates a ReadOnlyMessageFragment which represents a sub string of the original that should be preserved and not modified by any other pseudo methods. Fragments are created using an ObjectPool so they can be reused. Use ReleaseFragment(MessageFragment) to return the fragment or allow the Message to handle returning the fragment if it is part of Fragments.
Declaration
public ReadOnlyMessageFragment CreateReadonlyTextFragment(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
int | start | Sub string start |
int | end | Sub string end |
Returns
Type | Description |
---|---|
ReadOnlyMessageFragment | A new fragment. |