Theme font settings
Inheritance: INotifyPropertyChanged
コード例 #1
0
		public TextAppearanceCategory(TextAppearanceCategoryDefinition def, ThemeFontSettings themeFontSettings) {
			if (def == null)
				throw new ArgumentNullException(nameof(def));
			if (themeFontSettings == null)
				throw new ArgumentNullException(nameof(themeFontSettings));
			this.def = def;
			ThemeFontSettings = themeFontSettings;
			themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged;
			UpdateActive();
		}
コード例 #2
0
ファイル: FontSettingsImpl.cs プロジェクト: manojdjoshi/dnSpy
		public FontSettingsImpl(ThemeFontSettings owner, Guid themeGuid, FontFamily fontFamily, double fontSize) {
			if (owner == null)
				throw new ArgumentNullException(nameof(owner));
			if (fontFamily == null)
				throw new ArgumentNullException(nameof(fontFamily));
			ThemeFontSettings = owner;
			ThemeGuid = themeGuid;
			this.fontFamily = fontFamily;
			FontSize = fontSize;
		}