C# Class Sharpex2D.Common.Extensions.StringExtensions

Exibir arquivo Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
WordWrap ( this value, int width ) : string

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

Private Methods

Method 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 method

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
return string