Inheritance: INotifyPropertyChanged
コード例 #1
0
 public void SetTextStyle(TextStyle style)
 {
     TextStyle = style;
 }
コード例 #2
0
        private void SetTextStyle()
        {
            var iEditor = _pluginLoader.GetEditor();

            TextStyle style = new TextStyle();
            style.FontFamily = Properties.Settings.Default.TextBoxFontFamily;
            style.FontSize = Properties.Settings.Default.TextBoxFontSize;

            style.Background = new SolidColorBrush(Properties.Settings.Default.TextBoxBackgroundColor);
            style.Foreground = new SolidColorBrush(Properties.Settings.Default.TextBoxFontColor);

            iEditor.SetTextStyle(style);
        }