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
- FullTrustAssemblyCollection.cs
- IsolatedStorageException.cs
- MissingMemberException.cs
- CodeObject.cs
- EdmType.cs
- SmiContext.cs
- ScriptingJsonSerializationSection.cs
- SafeLocalMemHandle.cs
- FileLoadException.cs
- HitTestFilterBehavior.cs
- VerificationAttribute.cs
- SimpleMailWebEventProvider.cs
- TypeListConverter.cs
- TraversalRequest.cs
- WebConvert.cs
- GenerateScriptTypeAttribute.cs
- CommonDialog.cs
- FeatureAttribute.cs
- LiteralControl.cs
- RegexFCD.cs
- CategoryAttribute.cs
- SelectionHighlightInfo.cs
- ContentPlaceHolder.cs
- AttributeAction.cs
- CaseDesigner.xaml.cs
- Cursors.cs
- Debug.cs
- ErrorItem.cs
- ProjectionPathBuilder.cs
- ExpressionTable.cs
- DES.cs
- GroupItem.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CompositeFontParser.cs
- Socket.cs
- SQLSingleStorage.cs
- HttpCachePolicy.cs
- PartialCachingAttribute.cs
- SystemParameters.cs
- LinqDataSourceInsertEventArgs.cs
- ItemDragEvent.cs
- TextServicesProperty.cs
- FieldNameLookup.cs
- AutoGeneratedFieldProperties.cs
- ViewStateException.cs
- Rotation3DKeyFrameCollection.cs
- InstanceCreationEditor.cs
- PackWebRequest.cs
- WriteStateInfoBase.cs
- ActivityInstanceMap.cs
- Int64AnimationBase.cs
- SignatureDescription.cs
- WCFServiceClientProxyGenerator.cs
- DayRenderEvent.cs
- XamlSerializer.cs
- LocationSectionRecord.cs
- ICollection.cs
- BrowserTree.cs
- LocatorPartList.cs
- XmlSubtreeReader.cs
- SrgsToken.cs
- QilReference.cs
- Transform3DCollection.cs
- PriorityRange.cs
- KeyNotFoundException.cs
- SimpleApplicationHost.cs
- XmlDocumentFieldSchema.cs
- ClientSettingsStore.cs
- TabletDeviceInfo.cs
- ProxySimple.cs
- ConfigDefinitionUpdates.cs
- DelegateHelpers.cs
- NativeMethods.cs
- Visual3DCollection.cs
- UnsafeMethods.cs
- SqlBuffer.cs
- SpeechEvent.cs
- MenuAdapter.cs
- SchemaTableColumn.cs
- OutOfProcStateClientManager.cs
- PlanCompiler.cs
- SqlDataSourceConfigureFilterForm.cs
- RequestTimeoutManager.cs
- ReflectPropertyDescriptor.cs
- ItemCollection.cs
- OletxCommittableTransaction.cs
- UserInitiatedRoutedEventPermission.cs
- X509WindowsSecurityToken.cs
- ProxyDataContractResolver.cs
- Int64KeyFrameCollection.cs
- SettingsPropertyValueCollection.cs
- ScrollBar.cs
- PointConverter.cs
- Int16Converter.cs
- CellPartitioner.cs
- Roles.cs
- MemberListBinding.cs
- ManipulationDelta.cs
- AtomServiceDocumentSerializer.cs
- ChineseLunisolarCalendar.cs