Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ColorContext.cs
- JsonWriterDelegator.cs
- InputScopeConverter.cs
- MonitorWrapper.cs
- ComboBoxAutomationPeer.cs
- QuaternionRotation3D.cs
- XappLauncher.cs
- MemberRestriction.cs
- AppAction.cs
- _DigestClient.cs
- CompilationSection.cs
- RectAnimationUsingKeyFrames.cs
- SecurityKeyUsage.cs
- DocumentEventArgs.cs
- HwndSource.cs
- HwndSourceKeyboardInputSite.cs
- DataGridCommandEventArgs.cs
- SmtpCommands.cs
- HandleCollector.cs
- HwndSourceParameters.cs
- PrintPreviewDialog.cs
- Exception.cs
- StringComparer.cs
- BuildResultCache.cs
- DataObjectMethodAttribute.cs
- SHA512Cng.cs
- XmlUtil.cs
- _ListenerResponseStream.cs
- ControlAdapter.cs
- WebPartVerb.cs
- SecurityDocument.cs
- ProgressBarAutomationPeer.cs
- RewritingProcessor.cs
- PropertyTabChangedEvent.cs
- XXXOnTypeBuilderInstantiation.cs
- SpeechAudioFormatInfo.cs
- PropertyGridCommands.cs
- HostedHttpTransportManager.cs
- COM2ICategorizePropertiesHandler.cs
- brushes.cs
- EntityDataSourceStatementEditorForm.cs
- XmlPropertyBag.cs
- VScrollProperties.cs
- CustomCredentialPolicy.cs
- DesignRelationCollection.cs
- RepeatInfo.cs
- SiteOfOriginContainer.cs
- TextTreeRootNode.cs
- MaskedTextBox.cs
- ModelTreeEnumerator.cs
- sitestring.cs
- InternalUserCancelledException.cs
- xmlsaver.cs
- XmlSubtreeReader.cs
- ContentType.cs
- QueryCacheKey.cs
- StagingAreaInputItem.cs
- InlineObject.cs
- UIHelper.cs
- TextDecorationCollection.cs
- IgnoreFileBuildProvider.cs
- DisplayInformation.cs
- SqlConnection.cs
- BehaviorEditorPart.cs
- Ref.cs
- GeneralTransform.cs
- shaperfactoryquerycacheentry.cs
- CompiledXpathExpr.cs
- OleDbReferenceCollection.cs
- SynchronizedCollection.cs
- ButtonChrome.cs
- ContainerAction.cs
- SchemaImporter.cs
- WithParamAction.cs
- HtmlInputSubmit.cs
- DSACryptoServiceProvider.cs
- CommandField.cs
- ValidationError.cs
- WorkflowServiceBuildProvider.cs
- ObjectStorage.cs
- SqlCacheDependencyDatabase.cs
- PageSetupDialog.cs
- WebServiceTypeData.cs
- TraceFilter.cs
- CharacterString.cs
- CodePageUtils.cs
- DataRowChangeEvent.cs
- ConditionCollection.cs
- DiagnosticSection.cs
- Keywords.cs
- NullEntityWrapper.cs
- ColumnClickEvent.cs
- ThemeDictionaryExtension.cs
- SelectionProviderWrapper.cs
- DateTimeConstantAttribute.cs
- MarkerProperties.cs
- LinkUtilities.cs
- IndexedString.cs
- XmlQueryCardinality.cs
- ImageKeyConverter.cs