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
- CqlParserHelpers.cs
- Material.cs
- CallSiteHelpers.cs
- DataGridViewRowCollection.cs
- EntityWrapper.cs
- UdpTransportSettings.cs
- SqlDataSourceParameterParser.cs
- DataGridLinkButton.cs
- Deflater.cs
- AttributeSetAction.cs
- EditorPartChrome.cs
- ConfigurationSchemaErrors.cs
- ResetableIterator.cs
- GenericRootAutomationPeer.cs
- DataServiceClientException.cs
- PartialTrustHelpers.cs
- TableRowCollection.cs
- AssemblyAttributesGoHere.cs
- HtmlTableCellCollection.cs
- StatusBarPanel.cs
- _NtlmClient.cs
- PageFunction.cs
- ArrangedElement.cs
- Track.cs
- WorkflowDesigner.cs
- TableProviderWrapper.cs
- ToolStripArrowRenderEventArgs.cs
- ObjectDisposedException.cs
- SqlMetaData.cs
- ContractListAdapter.cs
- RegistryDataKey.cs
- ElementMarkupObject.cs
- ConfigurationHelpers.cs
- WebBaseEventKeyComparer.cs
- RSATokenProvider.cs
- IndexedEnumerable.cs
- WeakHashtable.cs
- VisualStyleElement.cs
- LassoSelectionBehavior.cs
- TrustManagerMoreInformation.cs
- ProcessThread.cs
- XmlDictionaryReader.cs
- ButtonFlatAdapter.cs
- HttpPostProtocolReflector.cs
- filewebresponse.cs
- DiscreteKeyFrames.cs
- InfoCardKeyedHashAlgorithm.cs
- HttpModuleAction.cs
- SystemPens.cs
- arclist.cs
- LinkClickEvent.cs
- XmlResolver.cs
- InstanceOwner.cs
- WebRequestModulesSection.cs
- PolyLineSegment.cs
- FormClosedEvent.cs
- DifferencingCollection.cs
- CursorInteropHelper.cs
- AsymmetricSignatureDeformatter.cs
- HttpCacheVary.cs
- OdbcConnectionString.cs
- XmlHelper.cs
- AttachedPropertyDescriptor.cs
- CorrelationToken.cs
- XomlCompilerError.cs
- AuthenticationConfig.cs
- Empty.cs
- AttributeCollection.cs
- Wildcard.cs
- IISUnsafeMethods.cs
- ArrayList.cs
- SQLDateTime.cs
- MetadataProperty.cs
- UseManagedPresentationBindingElement.cs
- TreeNodeCollection.cs
- AutomationAttributeInfo.cs
- SafeTimerHandle.cs
- XmlBinaryReader.cs
- Double.cs
- DnsEndPoint.cs
- ContainerUtilities.cs
- QilScopedVisitor.cs
- ControlBuilderAttribute.cs
- SQLGuidStorage.cs
- DataGridViewCellFormattingEventArgs.cs
- PageParserFilter.cs
- ResourceDisplayNameAttribute.cs
- Int32CAMarshaler.cs
- WindowsToolbarItemAsMenuItem.cs
- RedistVersionInfo.cs
- PtsContext.cs
- BooleanConverter.cs
- EditorZoneBase.cs
- WaitingCursor.cs
- SqlTopReducer.cs
- SafeEventHandle.cs
- TabPanel.cs
- AssociatedControlConverter.cs
- EntityDataSourceChangingEventArgs.cs
- UserUseLicenseDictionaryLoader.cs