-
-
Notifications
You must be signed in to change notification settings - Fork 5
Text
Taiizor edited this page Mar 1, 2023
·
3 revisions
The TextExtension class contains extension methods related to text operations.
Property | Description |
---|---|
CutSymbol | The symbol to use when cutting a string. Default value is '...' |
CutMethod | The text truncation method to use. Default value is ETT.End (cut from end) |
Length | The length of the string to be returned. Default value is 100. |
ListSymbol | The symbol to use when generating a list of strings. Default value is '-'. |
List | The number of items to generate in a list. Default value is 5. |
Word | The length of the words to generate. Default value is 10. |
Method | Description | Parameters | Return Type |
---|---|---|---|
Cut | Cuts a string to a specified length and adds a symbol to the end of the string. |
|
string |
CutAsync | Cuts a string to a specified length and adds a symbol to the end of the string. This method runs asynchronously. |
|
Task<string> |
Text | Generates a random string of a specified length. |
|
string |
TextAsync | Generates a random string of a specified length. This method runs asynchronously. |
|
Task |
List | Generates a list of random strings. |
|
List |
ListAsync | Generates a list of random strings. This method runs asynchronously. |
|
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language