C# Class Sharpex2D.Common.Extensions.StringExtensions

Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode Description
WordWrap ( this value, int width ) : string

Word wraps the given text to fit within the specified width.

Private Methods

Méthode Description
BreakLine ( string text, int pos, int max ) : int

Locates position to break the given line so as to avoid breaking words.

WordWrapInner ( string text, int width ) : string

Word wraps the given text to fit within the specified width.

Method Details

WordWrap() public static méthode

Word wraps the given text to fit within the specified width.
public static WordWrap ( this value, int width ) : string
value this Text to be word wrapped
width int Width, in characters, to which the text /// should be word wrapped
Résultat string