StringExtensionMethods
Extension methods for System.String
Methods
Try and break a string into a fixed number of fragments at custom characters.
Parameters:
| text (string) | String to break. |
| font (Font) | Font to use for measuring. |
| fragments (int) | Target number of fragments. |
| leadingBreaks (char[] = null) | Spitting characters. Splits will be made following these characters. |
| trailingBreaks (char[] = null) | Spitting characters. Splits will be made preceding these characters. |
Returns: Array of fragments. May or may not be as long as the fragments integer.