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
- LifetimeServices.cs
- ResolveNameEventArgs.cs
- ListItemParagraph.cs
- ReaderOutput.cs
- XslTransform.cs
- SizeAnimationUsingKeyFrames.cs
- ClaimTypeElementCollection.cs
- RadioButtonFlatAdapter.cs
- Model3DCollection.cs
- WinFormsComponentEditor.cs
- MenuAutomationPeer.cs
- SoapClientMessage.cs
- ImageConverter.cs
- ListBoxItemWrapperAutomationPeer.cs
- BrowserCapabilitiesFactoryBase.cs
- PathSegment.cs
- Point3D.cs
- Control.cs
- BooleanKeyFrameCollection.cs
- DesignerDataRelationship.cs
- RegexGroupCollection.cs
- LostFocusEventManager.cs
- versioninfo.cs
- ThaiBuddhistCalendar.cs
- SqlDuplicator.cs
- PointLightBase.cs
- LongValidator.cs
- CollectionConverter.cs
- BrushMappingModeValidation.cs
- wgx_exports.cs
- Version.cs
- ModuleBuilderData.cs
- XmlAtomicValue.cs
- ChannelParameterCollection.cs
- DerivedKeySecurityToken.cs
- GridViewDeletedEventArgs.cs
- Binding.cs
- ResourceAttributes.cs
- WebHeaderCollection.cs
- QfeChecker.cs
- FormView.cs
- TreeNodeEventArgs.cs
- OrderedDictionary.cs
- BasicSecurityProfileVersion.cs
- InvalidOperationException.cs
- SwitchLevelAttribute.cs
- MachineKeySection.cs
- SSmlParser.cs
- EncoderBestFitFallback.cs
- InheritablePropertyChangeInfo.cs
- SafePointer.cs
- EmbeddedMailObjectsCollection.cs
- PersonalizationStateQuery.cs
- RelationshipFixer.cs
- TemplateControlCodeDomTreeGenerator.cs
- HexParser.cs
- ConfigurationErrorsException.cs
- PresentationTraceSources.cs
- Formatter.cs
- QueryExecutionOption.cs
- SmiContextFactory.cs
- ProfileInfo.cs
- EventSourceCreationData.cs
- Avt.cs
- Menu.cs
- ToolStripSplitStackLayout.cs
- Latin1Encoding.cs
- Assembly.cs
- SharedPersonalizationStateInfo.cs
- PageContent.cs
- ModifierKeysConverter.cs
- AssemblyEvidenceFactory.cs
- XamlBrushSerializer.cs
- BuildProvidersCompiler.cs
- ListenerElementsCollection.cs
- DiscoveryDocumentReference.cs
- PolyLineSegmentFigureLogic.cs
- ChannelSinkStacks.cs
- QueryStringParameter.cs
- EditingCoordinator.cs
- RtfControls.cs
- Container.cs
- LineBreak.cs
- ToolTip.cs
- CryptoApi.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PrintEvent.cs
- DataGridViewRowCancelEventArgs.cs
- ApplicationException.cs
- PeerApplication.cs
- EventProperty.cs
- ChildDocumentBlock.cs
- HttpStreamMessageEncoderFactory.cs
- DependencyPropertyDescriptor.cs
- AnimatedTypeHelpers.cs
- SpecularMaterial.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- UnmanagedBitmapWrapper.cs
- Quaternion.cs
- WindowsToolbar.cs