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
- ColumnBinding.cs
- ExplicitDiscriminatorMap.cs
- StorageModelBuildProvider.cs
- ToolStripDesignerAvailabilityAttribute.cs
- HttpModulesSection.cs
- ActiveXSite.cs
- SpecialFolderEnumConverter.cs
- PrintPreviewControl.cs
- MemberJoinTreeNode.cs
- FunctionQuery.cs
- BooleanConverter.cs
- DetailsViewPagerRow.cs
- CollectionChangedEventManager.cs
- RowSpanVector.cs
- AssemblyResourceLoader.cs
- BrowserTree.cs
- CustomCategoryAttribute.cs
- ListViewItemCollectionEditor.cs
- FlowSwitchDesigner.xaml.cs
- ObjectListCommand.cs
- ColorMap.cs
- ListBoxAutomationPeer.cs
- FtpWebResponse.cs
- DataTableMappingCollection.cs
- Perspective.cs
- StylusTip.cs
- DeploymentSection.cs
- LayoutManager.cs
- ToolStripItemImageRenderEventArgs.cs
- SchemaImporterExtensionElement.cs
- CTreeGenerator.cs
- CheckBoxRenderer.cs
- DbProviderConfigurationHandler.cs
- DocumentSchemaValidator.cs
- ECDiffieHellman.cs
- ListBoxItem.cs
- BezierSegment.cs
- SourceInterpreter.cs
- SourceElementsCollection.cs
- SafeBitVector32.cs
- IODescriptionAttribute.cs
- MemoryMappedViewAccessor.cs
- HttpCookieCollection.cs
- MsmqInputSessionChannel.cs
- GetPageNumberCompletedEventArgs.cs
- InputLanguageSource.cs
- BStrWrapper.cs
- WebMethodAttribute.cs
- TypeConverterHelper.cs
- DataGridSortCommandEventArgs.cs
- EventWaitHandle.cs
- ISO2022Encoding.cs
- XamlTypeMapper.cs
- ConditionalDesigner.cs
- StagingAreaInputItem.cs
- TypeBrowserDialog.cs
- WindowsAltTab.cs
- HwndProxyElementProvider.cs
- RuntimeEnvironment.cs
- HtmlGenericControl.cs
- DateTimeHelper.cs
- SystemIcons.cs
- SBCSCodePageEncoding.cs
- XmlSchemaAttributeGroupRef.cs
- TreeViewImageIndexConverter.cs
- Positioning.cs
- SqlServices.cs
- XmlNodeChangedEventManager.cs
- DesignerOptionService.cs
- TripleDESCryptoServiceProvider.cs
- TypeUtil.cs
- ExpressionSelection.cs
- TextMessageEncoder.cs
- IPAddressCollection.cs
- DataKeyCollection.cs
- ManipulationLogic.cs
- ToolStripRenderer.cs
- TreeSet.cs
- RotateTransform3D.cs
- XmlSchemaSimpleType.cs
- DbExpressionVisitor.cs
- ExpressionNormalizer.cs
- DiagnosticTraceSource.cs
- StorageAssociationSetMapping.cs
- TextEditorTyping.cs
- IndexedString.cs
- XhtmlBasicLinkAdapter.cs
- ModelUIElement3D.cs
- ExeConfigurationFileMap.cs
- securestring.cs
- TrustSection.cs
- XmlWriter.cs
- DataFieldEditor.cs
- CompilerParameters.cs
- TypeConverterAttribute.cs
- WasEndpointConfigContainer.cs
- ParseChildrenAsPropertiesAttribute.cs
- PreparingEnlistment.cs
- InstanceKeyCollisionException.cs
- SynchronizedDispatch.cs