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