Code:
/ 4.0 / 4.0 / 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. //// 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
- WorkflowServiceHostFactory.cs
- securitycriticaldataformultiplegetandset.cs
- FileLevelControlBuilderAttribute.cs
- FileEnumerator.cs
- SiteMapNode.cs
- FaultCode.cs
- _SslSessionsCache.cs
- ForEachAction.cs
- Thread.cs
- StringInfo.cs
- AnnotationResource.cs
- XhtmlBasicCommandAdapter.cs
- XPathConvert.cs
- ObjectStateEntry.cs
- DataGridViewCellEventArgs.cs
- Matrix.cs
- MeshGeometry3D.cs
- ActionMessageFilterTable.cs
- NullableFloatSumAggregationOperator.cs
- AlphabeticalEnumConverter.cs
- ScaleTransform3D.cs
- TransactionBehavior.cs
- HostSecurityManager.cs
- XmlEventCache.cs
- MeasurementDCInfo.cs
- ConfigXmlCDataSection.cs
- DependencyPropertyAttribute.cs
- SafeLocalAllocation.cs
- OdbcConnectionPoolProviderInfo.cs
- DefaultObjectMappingItemCollection.cs
- Monitor.cs
- ControlIdConverter.cs
- SurrogateSelector.cs
- EventInfo.cs
- HotCommands.cs
- GeneralTransform3DGroup.cs
- ReadOnlyPropertyMetadata.cs
- CustomErrorsSectionWrapper.cs
- PathSegment.cs
- DateTimeOffsetAdapter.cs
- HttpResponseMessageProperty.cs
- CloudCollection.cs
- FrameSecurityDescriptor.cs
- CellIdBoolean.cs
- OutputCacheProfileCollection.cs
- DataServices.cs
- GlobalItem.cs
- DtdParser.cs
- DefaultValueTypeConverter.cs
- CompiledQuery.cs
- KeyValueInternalCollection.cs
- Pointer.cs
- SubtreeProcessor.cs
- ItemAutomationPeer.cs
- SqlBooleanMismatchVisitor.cs
- Light.cs
- DataContext.cs
- cookie.cs
- PresentationTraceSources.cs
- WebBaseEventKeyComparer.cs
- HttpProfileGroupBase.cs
- TextHintingModeValidation.cs
- TheQuery.cs
- COM2ExtendedUITypeEditor.cs
- RootBrowserWindowAutomationPeer.cs
- BitStack.cs
- DataGridParentRows.cs
- KeyValuePairs.cs
- ObjectDataSourceView.cs
- ComponentEditorForm.cs
- MimeTypeAttribute.cs
- ReadOnlyDataSourceView.cs
- TextDecoration.cs
- InstanceNotReadyException.cs
- DataSetViewSchema.cs
- AssemblyNameProxy.cs
- BooleanStorage.cs
- IPEndPointCollection.cs
- SQLGuidStorage.cs
- CompilerLocalReference.cs
- XPathMessageFilterTable.cs
- Vector3DAnimationBase.cs
- PackageRelationshipSelector.cs
- SqlCacheDependencyDatabase.cs
- DataKey.cs
- PrimitiveType.cs
- WebAdminConfigurationHelper.cs
- PropagatorResult.cs
- SoapCommonClasses.cs
- DockPanel.cs
- MultiSelectRootGridEntry.cs
- SerializationInfo.cs
- BindingManagerDataErrorEventArgs.cs
- UrlRoutingHandler.cs
- VisualBrush.cs
- CellRelation.cs
- EllipseGeometry.cs
- PropertyEmitterBase.cs
- OutKeywords.cs
- VirtualPathUtility.cs