Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Graph.cs
- Crc32Helper.cs
- UInt32Storage.cs
- ProfileEventArgs.cs
- StorageBasedPackageProperties.cs
- WmpBitmapDecoder.cs
- DrawingContextDrawingContextWalker.cs
- PersonalizationStateInfo.cs
- odbcmetadatacollectionnames.cs
- AnimationTimeline.cs
- HandleCollector.cs
- ComponentResourceKey.cs
- AppDomainShutdownMonitor.cs
- DeviceSpecificDialogCachedState.cs
- IisTraceListener.cs
- InternalControlCollection.cs
- GraphicsState.cs
- wmiprovider.cs
- CodeMemberField.cs
- RoleManagerModule.cs
- DecodeHelper.cs
- ResourceDisplayNameAttribute.cs
- ServiceContractGenerationContext.cs
- PeerSecurityHelpers.cs
- PageRequestManager.cs
- TypeAccessException.cs
- UDPClient.cs
- DataGridSortCommandEventArgs.cs
- Validator.cs
- XmlSchemaAny.cs
- Point3DCollectionConverter.cs
- FilterEventArgs.cs
- SiteMapNodeCollection.cs
- TableProviderWrapper.cs
- ModelEditingScope.cs
- DispatcherProcessingDisabled.cs
- columnmapkeybuilder.cs
- TableStyle.cs
- RelationshipManager.cs
- TraceSource.cs
- NGCSerializerAsync.cs
- ProfessionalColors.cs
- XmlDataLoader.cs
- AdjustableArrowCap.cs
- RuleInfoComparer.cs
- SortFieldComparer.cs
- ManipulationStartedEventArgs.cs
- MethodImplAttribute.cs
- DelimitedListTraceListener.cs
- ServiceProviders.cs
- PasswordBox.cs
- UrlPath.cs
- TextRangeBase.cs
- RetriableClipboard.cs
- XPathException.cs
- SQLRoleProvider.cs
- JoinSymbol.cs
- PublisherIdentityPermission.cs
- ZipIOModeEnforcingStream.cs
- AssemblyCollection.cs
- Stopwatch.cs
- SingleObjectCollection.cs
- XmlReturnReader.cs
- CommandHelpers.cs
- ManipulationLogic.cs
- KeyProperty.cs
- PointHitTestResult.cs
- DocumentsTrace.cs
- NotifyParentPropertyAttribute.cs
- StringInfo.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ContentWrapperAttribute.cs
- RawMouseInputReport.cs
- NotifyInputEventArgs.cs
- DataBoundControlAdapter.cs
- XmlDataSourceNodeDescriptor.cs
- SerializerDescriptor.cs
- SubclassTypeValidatorAttribute.cs
- TableParaClient.cs
- oledbmetadatacolumnnames.cs
- Vector.cs
- COM2PropertyDescriptor.cs
- EventLogPermission.cs
- PDBReader.cs
- ProxySimple.cs
- DataGridViewRowStateChangedEventArgs.cs
- ConnectionsZone.cs
- NameValueSectionHandler.cs
- Unit.cs
- OracleColumn.cs
- HttpResponseWrapper.cs
- HttpRuntime.cs
- CommandBinding.cs
- PartialCachingControl.cs
- QilGenerator.cs
- MenuRendererStandards.cs
- XmlCharacterData.cs
- ImageCollectionCodeDomSerializer.cs
- _NativeSSPI.cs
- EdgeModeValidation.cs