예제 #1
0
 public Visualizer(
     IColorScheme colorScheme,
     IFontScheme fontScheme,
     Color backgroundColor,
     Size imageSize)
 {
     this.colorScheme = colorScheme;
     this.fontScheme  = fontScheme;
     BackgroundColor  = backgroundColor;
     Size             = imageSize;
 }
예제 #2
0
파일: ExcelTheme.cs 프로젝트: Daoting/dt
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Xls.ExcelTheme" /> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="colorScheme">The color scheme.</param>
 /// <param name="fontScheme">The font scheme.</param>
 public ExcelTheme(string name, IColorScheme colorScheme, IFontScheme fontScheme)
 {
     if (string.IsNullOrWhiteSpace(name))
     {
         throw new ArgumentNullException("name");
     }
     if (colorScheme == null)
     {
         throw new ArgumentNullException("colorScheme");
     }
     if (fontScheme == null)
     {
         throw new ArgumentNullException("fontScheme");
     }
     this.Name        = name;
     this.ColorScheme = colorScheme;
     this.FontScheme  = fontScheme;
 }
 public static void ApplyFontSchemeToAll <T> (IFontScheme fontScheme) where T : ITextInputController
 {
     ApplyFontSchemeToAll(fontScheme, typeof(T));
 }
예제 #4
0
 public static void ApplyFontSchemeToTextField(IFontScheme fontScheme, TextField textField)
 {
     ApplyFontScheme(fontScheme, textField);
 }
예제 #5
0
 public static void ApplyFontSchemeToTextInputController(IFontScheme fontScheme, ITextInputController textInputController)
 {
     ApplyFontScheme(fontScheme, textInputController);
 }
예제 #6
0
 public static void ApplyFontSchemeToAll(IFontScheme fontScheme, Type textInputControllerType)
 {
     ApplyFontSchemeToAll(fontScheme, new Class(textInputControllerType));
 }