Class MessageFragment
Inheritance
MessageFragment
Syntax
public abstract class MessageFragment
Fields
m_EndIndex
Declaration
Field Value
m_OriginalString
Declaration
protected string m_OriginalString
Field Value
m_StartIndex
Declaration
protected int m_StartIndex
Field Value
Properties
Item[Int32]
Declaration
public char this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Length
Total length of the fragment.
Declaration
public int Length { get; }
Property Value
Message
The message the fragment is part of.
Declaration
public Message Message { get; }
Property Value
Methods
CreateReadonlyTextFragment(Int32, Int32)
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
Returns
CreateTextFragment(Int32, Int32)
Declaration
public WritableMessageFragment CreateTextFragment(int start, int end)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides