ReplaceText Method
ReplaceText(TextMapFragment, string, Font, float?)
Replaces a specified text fragment with another text.
Declaration
void ReplaceText(TextMapFragment fragment, string text, Font font = null, float? fontSize = null)
Sub ReplaceText(fragment As TextMapFragment, text As String, Optional font As Font = Nothing, Optional fontSize As Single? = Nothing)
Parameters
Type |
Name |
Description |
TextMapFragment |
fragment |
The fragment to replace.
|
string |
text |
The replacement text.
|
Font |
font |
The font for the replacement text. If null, the current font will be used.
|
float? |
fontSize |
The font size for the replacement text. If null, the current font size will be used.
|