Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Print / Reach / PrintConfig / PageCopyCount.cs / 1 / PageCopyCount.cs
/*++ Copyright (C) 2003 Microsoft Corporation All rights reserved. Module Name: PageCopyCount.cs Abstract: Definition and implementation of this public feature/parameter related types. Author: [....] ([....]) 7/18/2003 --*/ using System; using System.IO; using System.Collections; using System.Diagnostics; using System.Globalization; using System.Printing; using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { ////// Represents job copy count capability. /// internal sealed class JobCopyCountCapability : NonNegativeIntParameterDefinition { #region Constructors internal JobCopyCountCapability() : base() { } #endregion Constructors #region Internal Methods internal static ParameterDefinition NewParamDefCallback(InternalPrintCapabilities printCap) { JobCopyCountCapability cap = new JobCopyCountCapability(); return cap; } #endregion Internal Methods } ////// Represents job copy count setting. /// internal class JobCopyCountSetting : PrintTicketParameter { #region Constructors ////// Constructs a new job copy count setting object. /// internal JobCopyCountSetting(InternalPrintTicket ownerPrintTicket) : base(ownerPrintTicket, PrintSchemaTags.Keywords.ParameterDefs.JobCopyCount, PrintTicketParamTypes.Parameter, PrintTicketParamValueTypes.IntValue) { } #endregion Constructors #region Public Properties ////// Gets or sets the value of job copy count. /// ////// If this setting is not specified yet, getter will return ///. /// /// The value to set is not a positive integer. /// public int Value { get { return this.IntValue; } set { if (value <= 0) { throw new ArgumentOutOfRangeException("value", PTUtility.GetTextFromResource("ArgumentException.PositiveValue")); } this.IntValue = value; } } #endregion Public Properties #region Public Methods ////// Converts the job copy count setting to human-readable string. /// ///A string that represents this job copy count setting. public override string ToString() { return Value.ToString(CultureInfo.CurrentCulture); } #endregion Public Methods #region Internal Methods internal override sealed void SettingClearCallback() { } #endregion Internal Methods } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityContextSecurityTokenAuthenticator.cs
- CustomError.cs
- Expression.cs
- AudioBase.cs
- BitmapFrameDecode.cs
- ExtensionCollection.cs
- OperatingSystem.cs
- DoubleConverter.cs
- SqlDataSourceSelectingEventArgs.cs
- InputScopeNameConverter.cs
- OAVariantLib.cs
- FileSystemInfo.cs
- MemberListBinding.cs
- SoapProtocolImporter.cs
- ACL.cs
- RegistrySecurity.cs
- GridViewRowCollection.cs
- Switch.cs
- Assembly.cs
- TextBoxRenderer.cs
- TreeNodeBindingCollection.cs
- XmlWhitespace.cs
- FormViewCommandEventArgs.cs
- PerformanceCounterCategory.cs
- OleDbError.cs
- XmlSchemaNotation.cs
- RtType.cs
- FtpCachePolicyElement.cs
- ServiceMetadataExtension.cs
- CachedPathData.cs
- GeneratedContractType.cs
- ZeroOpNode.cs
- Keywords.cs
- EdgeProfileValidation.cs
- InvalidCastException.cs
- HttpCacheVaryByContentEncodings.cs
- ScriptServiceAttribute.cs
- WebBrowser.cs
- BuildManagerHost.cs
- SafeThemeHandle.cs
- AddInToken.cs
- CodeRegionDirective.cs
- Mutex.cs
- ConnectionManagementElement.cs
- ImageField.cs
- SrgsGrammar.cs
- XmlSchemaComplexContentRestriction.cs
- PerformanceCountersBase.cs
- EventInfo.cs
- PopupRoot.cs
- URIFormatException.cs
- ItemsControl.cs
- RequiredArgumentAttribute.cs
- SizeF.cs
- OutputCacheSettingsSection.cs
- DiscoveryDocumentLinksPattern.cs
- WebEvents.cs
- ResourceReferenceExpressionConverter.cs
- SubpageParagraph.cs
- CommandBinding.cs
- StorageMappingItemCollection.cs
- PassportIdentity.cs
- CacheHelper.cs
- UDPClient.cs
- CompressionTransform.cs
- XmlSchemaElement.cs
- AuthorizationRuleCollection.cs
- ServerIdentity.cs
- ColorInterpolationModeValidation.cs
- CharAnimationUsingKeyFrames.cs
- PrintDialog.cs
- TypeConverterHelper.cs
- AutomationPropertyChangedEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- TextCompositionEventArgs.cs
- SequenceDesigner.cs
- ISFClipboardData.cs
- RegistrySecurity.cs
- InternalTypeHelper.cs
- LookupNode.cs
- RoleBoolean.cs
- ContentPresenter.cs
- Dictionary.cs
- FontFamilyIdentifier.cs
- ParseChildrenAsPropertiesAttribute.cs
- DataGridViewHeaderCell.cs
- RecognitionResult.cs
- LoadRetryHandler.cs
- PtsPage.cs
- ListChunk.cs
- SafeRegistryKey.cs
- BroadcastEventHelper.cs
- BoolLiteral.cs
- Types.cs
- RegistryPermission.cs
- ItemCheckedEvent.cs
- DataMisalignedException.cs
- NamespaceEmitter.cs
- MergePropertyDescriptor.cs
- ToggleButton.cs