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
- StringInfo.cs
- XNameTypeConverter.cs
- StateManagedCollection.cs
- ErrorsHelper.cs
- EncryptedKeyHashIdentifierClause.cs
- log.cs
- GradientPanel.cs
- SafeFileMapViewHandle.cs
- regiisutil.cs
- ExpressionBindings.cs
- ContentType.cs
- DesignDataSource.cs
- PocoPropertyAccessorStrategy.cs
- DependencyObjectProvider.cs
- Control.cs
- AutomationAttributeInfo.cs
- MoveSizeWinEventHandler.cs
- RuleSettings.cs
- Logging.cs
- HtmlInputControl.cs
- QueryableFilterUserControl.cs
- InputQueueChannelAcceptor.cs
- ImportCatalogPart.cs
- ValidatorUtils.cs
- TypeReference.cs
- SqlConnectionPoolProviderInfo.cs
- LockedAssemblyCache.cs
- ParameterEditorUserControl.cs
- PeerNameRecord.cs
- ActivityDesignerResources.cs
- DependentList.cs
- AsymmetricKeyExchangeDeformatter.cs
- AssociationTypeEmitter.cs
- ToolStripSeparator.cs
- DiffuseMaterial.cs
- DataGridViewImageCell.cs
- EntityStoreSchemaGenerator.cs
- SynchronizationScope.cs
- ScriptIgnoreAttribute.cs
- StaticContext.cs
- DivideByZeroException.cs
- TypedReference.cs
- EmptyStringExpandableObjectConverter.cs
- PingReply.cs
- DirectoryNotFoundException.cs
- AnimatedTypeHelpers.cs
- Material.cs
- FixUpCollection.cs
- ChangeBlockUndoRecord.cs
- MustUnderstandBehavior.cs
- BypassElementCollection.cs
- PathTooLongException.cs
- XmlSchemaSimpleContent.cs
- JoinElimination.cs
- ArraySortHelper.cs
- FrameworkTemplate.cs
- OdbcParameter.cs
- ValidationRuleCollection.cs
- XmlReaderSettings.cs
- StreamWriter.cs
- Point3DCollectionConverter.cs
- DesignerOptions.cs
- DataGridRelationshipRow.cs
- SerializableAttribute.cs
- RuntimeArgumentHandle.cs
- ActionMessageFilterTable.cs
- FocusWithinProperty.cs
- CheckableControlBaseAdapter.cs
- StreamInfo.cs
- IntPtr.cs
- CodeSnippetStatement.cs
- WebPageTraceListener.cs
- InfoCardRequestException.cs
- MessagePropertyDescription.cs
- HtmlUtf8RawTextWriter.cs
- AuthStoreRoleProvider.cs
- CalendarDateRange.cs
- PlatformCulture.cs
- Attributes.cs
- SystemInfo.cs
- RegionIterator.cs
- DispatchWrapper.cs
- DBNull.cs
- RoutedPropertyChangedEventArgs.cs
- AccessViolationException.cs
- OracleBoolean.cs
- SchemaInfo.cs
- ViewEventArgs.cs
- DependencyPropertyConverter.cs
- TableLayoutPanelCellPosition.cs
- VerticalConnector.xaml.cs
- CaseInsensitiveOrdinalStringComparer.cs
- AssemblyInfo.cs
- WindowsStatic.cs
- BuildResult.cs
- oledbmetadatacolumnnames.cs
- AccessibleObject.cs
- BooleanConverter.cs
- ToolbarAUtomationPeer.cs
- RoutedEventArgs.cs