Gets the selected text or, if none selected, all text (excluding comments).
Namespace: CleanCode.ChameleonRichTextBoxControlsAssembly: CleanCode.ChameleonRichTextBoxControls (in CleanCode.ChameleonRichTextBoxControls.dll) Version: 1.2.3.0 (1.2.03)
public string SelectedOrAllText { get; }
public string SelectedOrAllText { get; }
Public ReadOnly Property SelectedOrAllText As String
Get
Public ReadOnly Property SelectedOrAllText As String
Get
public:
property String^ SelectedOrAllText {
String^ get ();
}
public:
property String^ SelectedOrAllText {
String^ get ();
}
Field Value
Selected or all text without comments.
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.)