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
- TransformGroup.cs
- DependencyPropertyChangedEventArgs.cs
- PeerDuplexChannelListener.cs
- HandlerMappingMemo.cs
- PeerHopCountAttribute.cs
- SharedStatics.cs
- DetailsViewRowCollection.cs
- NotifyIcon.cs
- PartBasedPackageProperties.cs
- MatchAttribute.cs
- Roles.cs
- Vector3DCollectionValueSerializer.cs
- CollectionType.cs
- CatalogZone.cs
- GacUtil.cs
- _StreamFramer.cs
- ThreadInterruptedException.cs
- Point.cs
- Base64WriteStateInfo.cs
- DesignerLabelAdapter.cs
- XmlUtf8RawTextWriter.cs
- ApplicationDirectoryMembershipCondition.cs
- ManagementNamedValueCollection.cs
- RegexCaptureCollection.cs
- RemotingSurrogateSelector.cs
- MetadataArtifactLoaderCompositeResource.cs
- StylusEventArgs.cs
- Int64Converter.cs
- TextAutomationPeer.cs
- ConfigXmlCDataSection.cs
- WindowsIdentity.cs
- Rules.cs
- ResourceDefaultValueAttribute.cs
- ExpressionReplacer.cs
- XslNumber.cs
- TextCompositionEventArgs.cs
- ConfigurationStrings.cs
- DayRenderEvent.cs
- Subtree.cs
- FamilyMap.cs
- DbParameterCollectionHelper.cs
- BitmapPalette.cs
- MediaScriptCommandRoutedEventArgs.cs
- SortDescriptionCollection.cs
- WindowsListViewItemCheckBox.cs
- precedingsibling.cs
- UserControlBuildProvider.cs
- Color.cs
- CoreSwitches.cs
- PathFigureCollection.cs
- SystemTcpConnection.cs
- EntityCommandExecutionException.cs
- ZipIOCentralDirectoryBlock.cs
- ADMembershipProvider.cs
- DataGridViewCellValidatingEventArgs.cs
- Int32Collection.cs
- OdbcInfoMessageEvent.cs
- InstanceStore.cs
- SpellCheck.cs
- RuntimeResourceSet.cs
- ServiceHttpHandlerFactory.cs
- ProfileGroupSettings.cs
- SerializationInfo.cs
- SafeMarshalContext.cs
- Delegate.cs
- MimeMultiPart.cs
- CodeIterationStatement.cs
- _NetworkingPerfCounters.cs
- WebPartZoneBase.cs
- XmlDataCollection.cs
- WindowsHyperlink.cs
- BaseTreeIterator.cs
- WeakEventManager.cs
- LinkGrep.cs
- XmlSchemaSet.cs
- UInt32Converter.cs
- TransactedBatchingBehavior.cs
- SerializationObjectManager.cs
- ObjectSelectorEditor.cs
- DBConcurrencyException.cs
- ListenerHandler.cs
- PropertyEmitter.cs
- COM2ICategorizePropertiesHandler.cs
- BufferedMessageData.cs
- OperationAbortedException.cs
- HttpListener.cs
- NullableDoubleAverageAggregationOperator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ShaderEffect.cs
- BindableTemplateBuilder.cs
- ToolboxBitmapAttribute.cs
- MetadataItemCollectionFactory.cs
- fixedPageContentExtractor.cs
- SystemGatewayIPAddressInformation.cs
- ThrowHelper.cs
- PermissionAttributes.cs
- ContextMenu.cs
- KeyManager.cs
- OdbcRowUpdatingEvent.cs
- _KerberosClient.cs