ChameleonRichTextBox SelectedOrAllText Property CleanCode C# Libraries v1.2.03 API
Gets the selected text or, if none selected, all text (excluding comments).

Namespace: CleanCode.ChameleonRichTextBoxControls
Assembly: CleanCode.ChameleonRichTextBoxControls (in CleanCode.ChameleonRichTextBoxControls.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public string SelectedOrAllText { get; }

Field Value

Selected or all text without comments.
Remarks

Filters out both block comments and end-of-line comments, returning the active portion of the text. The one exception is that if an end-of-line comment has its marker token doubled (i.e. "----") that will be converted back to a non-doubled form (i.e. "--") and that comment will be retained. This allows you to selectively pass through certain comments that you might need other layers to see. (Note that this special retained comment must have only whitespace to the left of it on the line and must be followed by at least one whitespace character as well.)
See Also