/// <summary> /// Selects the numeric part of the text. /// </summary> public void SelectNumericText() { var numeric = PhysicalValue.ExtractNumericPart(Text); var selectionStart = Text.IndexOf(numeric, StringComparison.Ordinal); var selectionLength = numeric.Length; Select(selectionStart, selectionLength); }