internal override sealed bool AddOptionCallback(PrintCapabilityOption baseOption) { bool added = false; TrueTypeFontModeOption option = baseOption as TrueTypeFontModeOption; // validate the option is complete before adding it to the collection if (option._optionName != null) { int enumValue = PrintSchemaMapper.SchemaNameToEnumValueWithArray( PrintSchemaTags.Keywords.PageTrueTypeFontModeKeys.ModeNames, PrintSchemaTags.Keywords.PageTrueTypeFontModeKeys.ModeEnums, option._optionName); if (enumValue > 0) { option._value = (TrueTypeFontMode)enumValue; this.TrueTypeFontModes.Add(option); added = true; } } return(added); }
internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature) { TrueTypeFontModeOption option = new TrueTypeFontModeOption(baseFeature); return(option); }