Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusCollection.cs / 1305600 / 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
- MultilineStringConverter.cs
- ProcessStartInfo.cs
- ContractMapping.cs
- RpcCryptoContext.cs
- ConfigurationProperty.cs
- ReadOnlyCollectionBase.cs
- MouseBinding.cs
- nulltextnavigator.cs
- CfgParser.cs
- ScriptMethodAttribute.cs
- RankException.cs
- CursorInteropHelper.cs
- EnumType.cs
- WorkflowApplicationException.cs
- HttpFileCollection.cs
- SrgsSemanticInterpretationTag.cs
- _AutoWebProxyScriptEngine.cs
- Converter.cs
- Invariant.cs
- SspiSafeHandles.cs
- DateTimeStorage.cs
- Interlocked.cs
- Int64Animation.cs
- Rectangle.cs
- MemoryMappedFileSecurity.cs
- PropertyGridEditorPart.cs
- WindowsBrush.cs
- HtmlElementCollection.cs
- FontStyleConverter.cs
- HttpProfileBase.cs
- EndpointDiscoveryMetadataCD1.cs
- Transform3DGroup.cs
- SwitchExpression.cs
- TimerEventSubscription.cs
- TextCompositionManager.cs
- XamlParser.cs
- HttpDebugHandler.cs
- WebPartCancelEventArgs.cs
- WindowsNonControl.cs
- DoWorkEventArgs.cs
- XpsSerializerWriter.cs
- HelpProvider.cs
- AssemblyInfo.cs
- LoadWorkflowCommand.cs
- RuntimeArgumentHandle.cs
- ClientUrlResolverWrapper.cs
- WindowInteropHelper.cs
- DesignerUtils.cs
- nulltextcontainer.cs
- BehaviorEditorPart.cs
- IOException.cs
- followingquery.cs
- HtmlWindow.cs
- OleDbRowUpdatingEvent.cs
- ThreadPool.cs
- InkPresenter.cs
- SettingsBindableAttribute.cs
- ValidatorCompatibilityHelper.cs
- CheckBoxField.cs
- _NestedMultipleAsyncResult.cs
- NumericUpDownAccelerationCollection.cs
- FixedHighlight.cs
- OdbcHandle.cs
- StringKeyFrameCollection.cs
- nulltextnavigator.cs
- GCHandleCookieTable.cs
- DbQueryCommandTree.cs
- XmlStringTable.cs
- Line.cs
- ContextMenuAutomationPeer.cs
- Thread.cs
- ProviderBase.cs
- CheckBox.cs
- CounterSampleCalculator.cs
- DrawItemEvent.cs
- PropertyGridCommands.cs
- DatatypeImplementation.cs
- ProfilePropertyNameValidator.cs
- CheckBox.cs
- CollectionBuilder.cs
- Rect3D.cs
- KeyTimeConverter.cs
- DockingAttribute.cs
- RoleManagerEventArgs.cs
- DeflateEmulationStream.cs
- QilParameter.cs
- ValidationHelpers.cs
- FixedSOMLineCollection.cs
- AccessKeyManager.cs
- InputScopeManager.cs
- ColumnClickEvent.cs
- ManifestResourceInfo.cs
- ClrPerspective.cs
- ScriptDescriptor.cs
- ProjectionPath.cs
- CharConverter.cs
- WpfKnownTypeInvoker.cs
- VectorConverter.cs
- AncestorChangedEventArgs.cs
- WebZone.cs