Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ClientTargetCollection.cs
- XhtmlBasicPhoneCallAdapter.cs
- FreezableCollection.cs
- TabPage.cs
- XmlTextEncoder.cs
- XLinq.cs
- ExpressionEvaluator.cs
- DataViewSetting.cs
- ToolStripSystemRenderer.cs
- GenericFlowSwitchHelper.cs
- Debug.cs
- WeakReferenceEnumerator.cs
- SequenceFullException.cs
- MetadataSource.cs
- PathFigure.cs
- Geometry.cs
- EventLogException.cs
- SmtpMail.cs
- PathFigureCollectionConverter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XPathCompileException.cs
- Drawing.cs
- PersistStreamTypeWrapper.cs
- StringBuilder.cs
- RoleGroup.cs
- SelectedDatesCollection.cs
- DataRowCollection.cs
- complextypematerializer.cs
- Int16KeyFrameCollection.cs
- ValueSerializer.cs
- shaper.cs
- UInt64Converter.cs
- CqlLexer.cs
- TypeSemantics.cs
- ApplicationFileCodeDomTreeGenerator.cs
- UrlMapping.cs
- followingsibling.cs
- AtlasWeb.Designer.cs
- DashStyle.cs
- TextContainerChangedEventArgs.cs
- SupportsEventValidationAttribute.cs
- RawKeyboardInputReport.cs
- TextModifier.cs
- Qualifier.cs
- ParallelEnumerableWrapper.cs
- HtmlUtf8RawTextWriter.cs
- WebPartPersonalization.cs
- BulletChrome.cs
- dataSvcMapFileLoader.cs
- InplaceBitmapMetadataWriter.cs
- WebPartZoneDesigner.cs
- SqlDataRecord.cs
- Symbol.cs
- DriveNotFoundException.cs
- Size3D.cs
- InputLanguage.cs
- FieldNameLookup.cs
- CompilerResults.cs
- XmlUnspecifiedAttribute.cs
- XslUrlEditor.cs
- List.cs
- ConvertTextFrag.cs
- ResXResourceReader.cs
- Quaternion.cs
- GroupBoxRenderer.cs
- XPathNodeHelper.cs
- XmlDataSource.cs
- GrammarBuilderRuleRef.cs
- PointCollection.cs
- FixedPageAutomationPeer.cs
- LinkClickEvent.cs
- HtmlInputImage.cs
- ResourceType.cs
- QilUnary.cs
- DescendantBaseQuery.cs
- DBCommand.cs
- RelationshipEndCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ValueQuery.cs
- AllowedAudienceUriElement.cs
- XmlSchemaExternal.cs
- safex509handles.cs
- AssemblyBuilderData.cs
- ObjectDataSourceDisposingEventArgs.cs
- ConditionalBranch.cs
- XPathAncestorQuery.cs
- GeneralTransformGroup.cs
- HybridDictionary.cs
- BufferedStream.cs
- RectAnimationUsingKeyFrames.cs
- HtmlElementErrorEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- EmptyEnumerator.cs
- Zone.cs
- MetaColumn.cs
- TaskSchedulerException.cs
- TimeEnumHelper.cs
- OutputCacheSettingsSection.cs
- DataAccessException.cs
- WebPartConnectionsConnectVerb.cs