Microsoft.VisualStudio.R.Package.DataInspect.TextVisual.GetFormattedText C# (CSharp) Method

GetFormattedText() public method

public GetFormattedText ( ) : System.Windows.Media.FormattedText
return System.Windows.Media.FormattedText
        public FormattedText GetFormattedText() {
            if (_formattedText == null) {
                _formattedText = new FormattedText(
                    Text,
                    CultureInfo.CurrentUICulture,
                    CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight,
                    Typeface,
                    FontSize,
                    Foreground);
            }
            return _formattedText;
        }