Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusCollection.cs / 1 / StylusCollection.cs
//// Copyright (C) Microsoft Corporation. All rights reserved. // using System; using System.Windows; using System.Security; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// Collection of the stylus devices that are available on the tablet. /// public class StylusDeviceCollection : ReadOnlyCollection{ ///////////////////////////////////////////////////////////////////// internal StylusDeviceCollection(StylusDevice[] styluses) : base(new List (styluses)) { } ///////////////////////////////////////////////////////////////////// /// /// Critical: calls SecurityCritical method stylusDevice.Dispose. /// [SecurityCritical] internal void Dispose() { foreach (StylusDevice stylusDevice in this.Items) { stylusDevice.Dispose(); } } ///////////////////////////////////////////////////////////////////// internal void AddStylusDevice(int index, StylusDevice stylusDevice) { base.Items.Insert(index, stylusDevice); // add it to our list. } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //// Copyright (C) Microsoft Corporation. All rights reserved. // using System; using System.Windows; using System.Security; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// Collection of the stylus devices that are available on the tablet. /// public class StylusDeviceCollection : ReadOnlyCollection{ ///////////////////////////////////////////////////////////////////// internal StylusDeviceCollection(StylusDevice[] styluses) : base(new List (styluses)) { } ///////////////////////////////////////////////////////////////////// /// /// Critical: calls SecurityCritical method stylusDevice.Dispose. /// [SecurityCritical] internal void Dispose() { foreach (StylusDevice stylusDevice in this.Items) { stylusDevice.Dispose(); } } ///////////////////////////////////////////////////////////////////// internal void AddStylusDevice(int index, StylusDevice stylusDevice) { base.Items.Insert(index, stylusDevice); // add it to our list. } } } // 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
- DataGridViewComboBoxColumn.cs
- ProofTokenCryptoHandle.cs
- StorageRoot.cs
- XmlSchemaSimpleContentRestriction.cs
- AlternateViewCollection.cs
- CmsInterop.cs
- MdImport.cs
- OutputCacheSection.cs
- Pens.cs
- SuppressMergeCheckAttribute.cs
- DesignTimeParseData.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WindowsPen.cs
- MethodBuilderInstantiation.cs
- IconEditor.cs
- DbConnectionPoolIdentity.cs
- OutputScope.cs
- SecuritySessionFilter.cs
- PermissionListSet.cs
- PaperSize.cs
- RawStylusActions.cs
- XmlQualifiedNameTest.cs
- DoubleAnimationClockResource.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ReferentialConstraint.cs
- SchemaImporter.cs
- ObjectComplexPropertyMapping.cs
- MemberHolder.cs
- MetadataSource.cs
- EditorBrowsableAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- CodeTypeParameterCollection.cs
- XMLSyntaxException.cs
- ObjectSecurity.cs
- CertificateReferenceElement.cs
- HitTestWithPointDrawingContextWalker.cs
- SharedPersonalizationStateInfo.cs
- TypeBuilderInstantiation.cs
- CalculatedColumn.cs
- DecimalKeyFrameCollection.cs
- WindowsClaimSet.cs
- ProcessThreadCollection.cs
- _NegoStream.cs
- PagesChangedEventArgs.cs
- ResolveMatches11.cs
- ImageButton.cs
- EncryptionUtility.cs
- ValidationPropertyAttribute.cs
- Stackframe.cs
- ObjectQuery.cs
- UIElement3D.cs
- InProcStateClientManager.cs
- ChtmlTextWriter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ControlUtil.cs
- ping.cs
- SoapMessage.cs
- CompilerWrapper.cs
- SizeChangedEventArgs.cs
- BorderGapMaskConverter.cs
- VerificationAttribute.cs
- MembershipValidatePasswordEventArgs.cs
- InvalidStoreProtectionKeyException.cs
- QueryStringParameter.cs
- PrintController.cs
- MobileControlsSectionHandler.cs
- Psha1DerivedKeyGeneratorHelper.cs
- XmlCDATASection.cs
- ComboBoxItem.cs
- ConfigXmlSignificantWhitespace.cs
- DbConnectionHelper.cs
- GeometryValueSerializer.cs
- BCLDebug.cs
- FormsAuthenticationUserCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ApplicationId.cs
- HtmlEncodedRawTextWriter.cs
- DataGridHelper.cs
- Rect3D.cs
- PerformanceCounterPermissionAttribute.cs
- InstanceHandleReference.cs
- GeometryModel3D.cs
- wgx_sdk_version.cs
- EqualityComparer.cs
- WebPartExportVerb.cs
- PageOutputColor.cs
- CodeNamespaceImportCollection.cs
- TabControl.cs
- SqlDelegatedTransaction.cs
- DrawingCollection.cs
- EnumType.cs
- WebPartMinimizeVerb.cs
- ContentControl.cs
- FunctionNode.cs
- VisualProxy.cs
- _NTAuthentication.cs
- ModuleElement.cs
- ResXResourceWriter.cs
- UseLicense.cs
- TextEditorParagraphs.cs