C# Class SensorShare.TextHelper

Show file Open project: MarkPaxton/SensorShare3

Public Properties

Property Type Description
lineSuffix string

Public Methods

Method Description
DeStreamString ( MemoryStream ms ) : string
PositionTextDisplay ( TextBox box ) : void

Position the carat at the end of the text to keep the last bit into view

StreamString ( MemoryStream ms, string item ) : void
UpdateLabel ( Label label, string text ) : void
UpdateTextBox ( TextBox box, string displayText, int linesToshow ) : void
tailString ( string toTail, int lines ) : string

Method Details

DeStreamString() public static method

public static DeStreamString ( MemoryStream ms ) : string
ms System.IO.MemoryStream
return string

PositionTextDisplay() public static method

Position the carat at the end of the text to keep the last bit into view
public static PositionTextDisplay ( TextBox box ) : void
box System.Windows.Forms.TextBox
return void

StreamString() public static method

public static StreamString ( MemoryStream ms, string item ) : void
ms System.IO.MemoryStream
item string
return void

UpdateLabel() public static method

public static UpdateLabel ( Label label, string text ) : void
label System.Windows.Forms.Label
text string
return void

UpdateTextBox() public static method

public static UpdateTextBox ( TextBox box, string displayText, int linesToshow ) : void
box System.Windows.Forms.TextBox
displayText string
linesToshow int
return void

tailString() public static method

public static tailString ( string toTail, int lines ) : string
toTail string
lines int
return string

Property Details

lineSuffix public static property

public static string lineSuffix
return string