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
- BuildResultCache.cs
- DiscriminatorMap.cs
- LabelAutomationPeer.cs
- EventLog.cs
- FactoryRecord.cs
- SystemUnicastIPAddressInformation.cs
- CheckoutException.cs
- BmpBitmapDecoder.cs
- Timer.cs
- _FixedSizeReader.cs
- HtmlWindowCollection.cs
- CodeLabeledStatement.cs
- CopyNamespacesAction.cs
- XmlTextReaderImpl.cs
- UTF8Encoding.cs
- EntityClientCacheEntry.cs
- ResXFileRef.cs
- InstancePersistenceException.cs
- AxisAngleRotation3D.cs
- DataGridTableCollection.cs
- MetadataHelper.cs
- ResourceDictionaryCollection.cs
- FontWeight.cs
- ResourceReader.cs
- ExtenderControl.cs
- BaseCodePageEncoding.cs
- SqlCacheDependency.cs
- TextBounds.cs
- SchemaElement.cs
- AssociatedControlConverter.cs
- WebServiceParameterData.cs
- Automation.cs
- ScrollBar.cs
- AssemblyBuilder.cs
- RootAction.cs
- SharedHttpTransportManager.cs
- X509WindowsSecurityToken.cs
- MulticastDelegate.cs
- IdentitySection.cs
- SEHException.cs
- OutputCacheSection.cs
- CultureTableRecord.cs
- WSTrust.cs
- _TLSstream.cs
- ActivityBindForm.cs
- CssTextWriter.cs
- BaseConfigurationRecord.cs
- CqlErrorHelper.cs
- GridViewRowPresenterBase.cs
- DataGridTableCollection.cs
- FixUp.cs
- AutomationIdentifierGuids.cs
- FilteredAttributeCollection.cs
- ConfigXmlWhitespace.cs
- ArgumentOutOfRangeException.cs
- DataGridViewCellStyle.cs
- WebPartConnectionsConfigureVerb.cs
- WebPartActionVerb.cs
- SizeAnimationClockResource.cs
- CommunicationObjectManager.cs
- StringFormat.cs
- XamlToRtfWriter.cs
- DataTableCollection.cs
- EdmConstants.cs
- CompilerError.cs
- ItemList.cs
- FontNameEditor.cs
- CachedFontFamily.cs
- LingerOption.cs
- PersonalizationEntry.cs
- OleDbSchemaGuid.cs
- DrawingVisualDrawingContext.cs
- MediaPlayerState.cs
- NoResizeSelectionBorderGlyph.cs
- TextEffect.cs
- DocumentEventArgs.cs
- ContourSegment.cs
- OnOperation.cs
- BackStopAuthenticationModule.cs
- Int16AnimationUsingKeyFrames.cs
- TextEndOfSegment.cs
- SqlDataReaderSmi.cs
- BaseValidator.cs
- CurrentTimeZone.cs
- MouseActionConverter.cs
- ScrollChrome.cs
- MethodBuilderInstantiation.cs
- ItemDragEvent.cs
- TextElementEnumerator.cs
- LOSFormatter.cs
- TypeBuilderInstantiation.cs
- Point3DCollectionConverter.cs
- ViewManagerAttribute.cs
- FileSecurity.cs
- DataGridColumnFloatingHeader.cs
- Vector3DKeyFrameCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- AudioFormatConverter.cs
- DispatchProxy.cs
- PointLightBase.cs