Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonCollection.cs / 1 / StylusButtonCollection.cs
//// Copyright (C) Microsoft Corporation. All rights reserved. // using System; using System.Windows; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using MS.Utility; using MS.Internal; 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 StylusButtonCollection : ReadOnlyCollection{ ///////////////////////////////////////////////////////////////////// internal StylusButtonCollection(StylusButton[] buttons) : base(new List (buttons)) { } /// /// Returns the first StylusButton in the collection with a Guid property /// that matches the specified guid. Returns null if no matching StylusButton is found /// /// guid public StylusButton GetStylusButtonByGuid(Guid guid) { for (int x = 0; x < this.Count; x++) { if (this[x].Guid == guid) { return this[x]; } } return null; } } } // 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.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using MS.Utility; using MS.Internal; 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 StylusButtonCollection : ReadOnlyCollection{ ///////////////////////////////////////////////////////////////////// internal StylusButtonCollection(StylusButton[] buttons) : base(new List (buttons)) { } /// /// Returns the first StylusButton in the collection with a Guid property /// that matches the specified guid. Returns null if no matching StylusButton is found /// /// guid public StylusButton GetStylusButtonByGuid(Guid guid) { for (int x = 0; x < this.Count; x++) { if (this[x].Guid == guid) { return this[x]; } } return null; } } } // 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
- MeshGeometry3D.cs
- DrawingContext.cs
- QueryGeneratorBase.cs
- DataGridColumn.cs
- QilName.cs
- _NetworkingPerfCounters.cs
- StoreAnnotationsMap.cs
- ZipArchive.cs
- HtmlListAdapter.cs
- EntityViewGenerator.cs
- PageFunction.cs
- AssertUtility.cs
- SpinWait.cs
- BindingSource.cs
- ClientScriptManagerWrapper.cs
- OptimisticConcurrencyException.cs
- TextDecoration.cs
- BidirectionalDictionary.cs
- CommandBindingCollection.cs
- WMIGenerator.cs
- FixedTextBuilder.cs
- LinearKeyFrames.cs
- UmAlQuraCalendar.cs
- DescendantOverDescendantQuery.cs
- RetriableClipboard.cs
- Substitution.cs
- CheckPair.cs
- XmlSchemaAttributeGroup.cs
- NativeCppClassAttribute.cs
- ArraySegment.cs
- DataGridItem.cs
- TypeDependencyAttribute.cs
- StickyNote.cs
- CodeAssignStatement.cs
- NameTable.cs
- Main.cs
- LinkButton.cs
- MulticastNotSupportedException.cs
- ServiceChannelManager.cs
- ManagementNamedValueCollection.cs
- InputScopeAttribute.cs
- SQLDateTimeStorage.cs
- SiteMapDataSource.cs
- SqlInternalConnection.cs
- AutomationTextAttribute.cs
- RestHandlerFactory.cs
- PipeStream.cs
- MetadataSerializer.cs
- Conditional.cs
- Control.cs
- SchemaObjectWriter.cs
- GroupBoxAutomationPeer.cs
- CryptoKeySecurity.cs
- PersonalizationEntry.cs
- DataServiceQueryProvider.cs
- WebColorConverter.cs
- Label.cs
- ObjectSet.cs
- SafePEFileHandle.cs
- GlobalProxySelection.cs
- ModuleBuilder.cs
- ProcessThreadDesigner.cs
- WebHttpBindingCollectionElement.cs
- RawAppCommandInputReport.cs
- ScriptingProfileServiceSection.cs
- EventProviderClassic.cs
- InheritablePropertyChangeInfo.cs
- InkPresenter.cs
- BackStopAuthenticationModule.cs
- DefaultObjectSerializer.cs
- BitmapCodecInfo.cs
- FieldInfo.cs
- IntSecurity.cs
- XmlDataSourceView.cs
- Soap.cs
- PrintPreviewControl.cs
- PersistChildrenAttribute.cs
- CriticalHandle.cs
- Italic.cs
- AuthenticationService.cs
- WindowsScrollBar.cs
- HandlerWithFactory.cs
- PathFigureCollectionValueSerializer.cs
- WebOperationContext.cs
- QueryPrefixOp.cs
- XmlSchemaGroup.cs
- MessageQueueTransaction.cs
- TextWriter.cs
- TabControlEvent.cs
- RadioButton.cs
- ObjectManager.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- StyleBamlRecordReader.cs
- OperationCanceledException.cs
- TextChangedEventArgs.cs
- HostDesigntimeLicenseContext.cs
- Matrix.cs
- Int16KeyFrameCollection.cs
- ImpersonateTokenRef.cs
- TransformCryptoHandle.cs