Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonCollection.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyFilterAttribute.cs
- EditableRegion.cs
- PathGeometry.cs
- TextFormatterImp.cs
- CachedFontFamily.cs
- OverrideMode.cs
- TextBoxAutomationPeer.cs
- UdpDiscoveryEndpointElement.cs
- ImportContext.cs
- DataGridViewDataErrorEventArgs.cs
- SingleAnimationBase.cs
- SqlGenerator.cs
- TextElementEditingBehaviorAttribute.cs
- XmlComplianceUtil.cs
- ClientProtocol.cs
- URLMembershipCondition.cs
- AsyncPostBackErrorEventArgs.cs
- ModuleElement.cs
- NestPullup.cs
- VectorCollection.cs
- GridViewRow.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- FontCacheUtil.cs
- X509ThumbprintKeyIdentifierClause.cs
- RunWorkerCompletedEventArgs.cs
- ApplicationInfo.cs
- SoapSchemaExporter.cs
- WorkflowTraceTransfer.cs
- ArrangedElement.cs
- XmlMapping.cs
- DES.cs
- StopStoryboard.cs
- FlowPosition.cs
- COAUTHINFO.cs
- TrackingAnnotationCollection.cs
- ToolStripTemplateNode.cs
- Propagator.JoinPropagator.cs
- TextFindEngine.cs
- WebScriptMetadataMessageEncoderFactory.cs
- TPLETWProvider.cs
- UnionCqlBlock.cs
- ProxyElement.cs
- DateTimeValueSerializerContext.cs
- CodeDefaultValueExpression.cs
- dbenumerator.cs
- DbUpdateCommandTree.cs
- ArrayConverter.cs
- SQLStringStorage.cs
- XmlLanguage.cs
- MenuCommands.cs
- PropertyManager.cs
- SqlFunctionAttribute.cs
- RbTree.cs
- PropertyGroupDescription.cs
- PTUtility.cs
- DPTypeDescriptorContext.cs
- KeyValueConfigurationCollection.cs
- PathFigureCollectionValueSerializer.cs
- DefaultValueAttribute.cs
- XmlILOptimizerVisitor.cs
- ChangesetResponse.cs
- XmlRootAttribute.cs
- TemplateControl.cs
- FileEnumerator.cs
- ImageBrush.cs
- FileVersionInfo.cs
- CommandField.cs
- StateMachineSubscriptionManager.cs
- MouseActionValueSerializer.cs
- __ComObject.cs
- DbgUtil.cs
- SizeFConverter.cs
- TextControl.cs
- ServiceManagerHandle.cs
- TripleDESCryptoServiceProvider.cs
- PersonalizationStateInfo.cs
- ScaleTransform.cs
- TypeDescriptionProvider.cs
- XomlCompilerHelpers.cs
- ErrorInfoXmlDocument.cs
- StopStoryboard.cs
- XomlCompilerHelpers.cs
- SwitchElementsCollection.cs
- TraceHwndHost.cs
- UTF8Encoding.cs
- ToolStripContentPanel.cs
- DrawingContextWalker.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- KeyConverter.cs
- ExpressionBuilderCollection.cs
- Rect.cs
- ThumbAutomationPeer.cs
- Win32PrintDialog.cs
- SelectionPattern.cs
- PerformanceCounterLib.cs
- SqlDelegatedTransaction.cs
- ItemsChangedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- SqlNamer.cs
- EventPrivateKey.cs