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
- TreeNodeCollection.cs
- COM2AboutBoxPropertyDescriptor.cs
- GetImportedCardRequest.cs
- DateTimeFormatInfo.cs
- StylusPlugInCollection.cs
- XslException.cs
- QueryableDataSourceHelper.cs
- Command.cs
- DrawingState.cs
- GridViewDeletedEventArgs.cs
- XmlSchemaChoice.cs
- COAUTHIDENTITY.cs
- ProxyWebPart.cs
- HttpCapabilitiesBase.cs
- WebPartCollection.cs
- BufferModeSettings.cs
- NetworkInterface.cs
- PageAdapter.cs
- XmlAttributeAttribute.cs
- GregorianCalendarHelper.cs
- WebPartCancelEventArgs.cs
- InternalConfigSettingsFactory.cs
- XmlCountingReader.cs
- FactoryMaker.cs
- MdiWindowListItemConverter.cs
- WSSecurityTokenSerializer.cs
- PeerResolverMode.cs
- SystemException.cs
- AudienceUriMode.cs
- DocumentSchemaValidator.cs
- DeleteIndexBinder.cs
- DetailsViewPageEventArgs.cs
- SingletonChannelAcceptor.cs
- PeerReferralPolicy.cs
- TaskbarItemInfo.cs
- ZipIOExtraFieldPaddingElement.cs
- MappingException.cs
- SafeTokenHandle.cs
- DesignerSerializationVisibilityAttribute.cs
- ToolStripItemGlyph.cs
- AppAction.cs
- Relationship.cs
- ResponseStream.cs
- XmlSchemaParticle.cs
- ReverseInheritProperty.cs
- NavigationService.cs
- Native.cs
- AuthenticationException.cs
- LogLogRecordEnumerator.cs
- InteropAutomationProvider.cs
- _AcceptOverlappedAsyncResult.cs
- FormattedTextSymbols.cs
- WebEvents.cs
- Types.cs
- HandleCollector.cs
- datacache.cs
- MimeBasePart.cs
- QuaternionAnimation.cs
- LongSumAggregationOperator.cs
- BuilderElements.cs
- OdbcEnvironmentHandle.cs
- CreateRefExpr.cs
- MarshalByRefObject.cs
- CellTreeNode.cs
- BufferedStream.cs
- RemoteWebConfigurationHostServer.cs
- AmbientProperties.cs
- LabelEditEvent.cs
- Tuple.cs
- XmlSchemaSubstitutionGroup.cs
- RoleService.cs
- AdornerLayer.cs
- ClassicBorderDecorator.cs
- IListConverters.cs
- PointIndependentAnimationStorage.cs
- GridViewCommandEventArgs.cs
- HttpVersion.cs
- ListBox.cs
- NetworkInformationException.cs
- HttpApplicationFactory.cs
- XmlAtomErrorReader.cs
- DbResourceAllocator.cs
- Exception.cs
- TextWriter.cs
- AsymmetricSignatureFormatter.cs
- XmlSchemaResource.cs
- WebProxyScriptElement.cs
- LessThanOrEqual.cs
- DataGridViewTextBoxEditingControl.cs
- COM2Properties.cs
- TypedDatasetGenerator.cs
- ObsoleteAttribute.cs
- DesignerDataConnection.cs
- BufferModeSettings.cs
- SynchronousChannel.cs
- basenumberconverter.cs
- BlockingCollection.cs
- FixedPosition.cs
- MouseGestureConverter.cs
- StreamMarshaler.cs