Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- IncrementalCompileAnalyzer.cs
- DataGridViewRowConverter.cs
- PatternMatcher.cs
- RoleGroup.cs
- XamlPathDataSerializer.cs
- arabicshape.cs
- RotateTransform3D.cs
- Wizard.cs
- Timer.cs
- AssemblyLoader.cs
- TCEAdapterGenerator.cs
- InertiaExpansionBehavior.cs
- XmlNotation.cs
- ProtectedConfigurationSection.cs
- UserUseLicenseDictionaryLoader.cs
- KnownAssembliesSet.cs
- ToolStripContentPanelRenderEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- HelpEvent.cs
- UnderstoodHeaders.cs
- Activator.cs
- SymmetricKeyWrap.cs
- DataReaderContainer.cs
- WebPartVerbsEventArgs.cs
- BinaryObjectInfo.cs
- EnumerableWrapperWeakToStrong.cs
- HttpProcessUtility.cs
- Vector3DCollectionConverter.cs
- DebugView.cs
- XmlAttributeHolder.cs
- Common.cs
- AssemblyHash.cs
- WizardForm.cs
- Win32PrintDialog.cs
- InvalidOleVariantTypeException.cs
- _PooledStream.cs
- ModulesEntry.cs
- HttpRequest.cs
- SplineKeyFrames.cs
- ClientTargetCollection.cs
- ScrollItemPatternIdentifiers.cs
- ActiveDocumentEvent.cs
- XPathBuilder.cs
- DownloadProgressEventArgs.cs
- CompiledXpathExpr.cs
- CellLabel.cs
- UnsafeNativeMethods.cs
- RegexWorker.cs
- DefaultAuthorizationContext.cs
- UnsafeNativeMethodsPenimc.cs
- PolyBezierSegmentFigureLogic.cs
- XmlAnyElementAttributes.cs
- CategoryGridEntry.cs
- HttpClientChannel.cs
- XmlCharCheckingReader.cs
- AssemblyGen.cs
- TableColumnCollection.cs
- ItemsControlAutomationPeer.cs
- PermissionAttributes.cs
- EditorZoneAutoFormat.cs
- Deflater.cs
- WebServiceAttribute.cs
- IndentedWriter.cs
- DataTableMappingCollection.cs
- BindingList.cs
- HGlobalSafeHandle.cs
- DeferredReference.cs
- TreeSet.cs
- DSASignatureFormatter.cs
- GeometryGroup.cs
- StringAnimationUsingKeyFrames.cs
- ContentElement.cs
- HwndHostAutomationPeer.cs
- UTF8Encoding.cs
- HwndProxyElementProvider.cs
- ObservableCollectionDefaultValueFactory.cs
- WebRequestModuleElement.cs
- DataListItem.cs
- ParenthesizePropertyNameAttribute.cs
- InitializationEventAttribute.cs
- SpotLight.cs
- Point3DAnimation.cs
- SQLGuid.cs
- XamlReader.cs
- StateMachineWorkflowDesigner.cs
- PreparingEnlistment.cs
- MailFileEditor.cs
- ResponseBodyWriter.cs
- ApplicationHost.cs
- TextBoxAutomationPeer.cs
- TaskFileService.cs
- ControllableStoryboardAction.cs
- WorkflowRuntimeSection.cs
- ContractsBCL.cs
- FillBehavior.cs
- WriteFileContext.cs
- __Error.cs
- ThrowHelper.cs
- TreeIterator.cs
- VScrollProperties.cs