Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PowerEase.cs
- PropertyGridEditorPart.cs
- Stack.cs
- WebPartCloseVerb.cs
- TemplatedMailWebEventProvider.cs
- DocumentAutomationPeer.cs
- AssemblyFilter.cs
- RadioButton.cs
- ErrorRuntimeConfig.cs
- ToolStripCodeDomSerializer.cs
- SourceSwitch.cs
- QuestionEventArgs.cs
- PointCollectionConverter.cs
- Expression.cs
- ChtmlPageAdapter.cs
- MexHttpBindingElement.cs
- SystemPens.cs
- QilLiteral.cs
- OpCodes.cs
- PropertyConverter.cs
- FormViewDeletedEventArgs.cs
- TcpAppDomainProtocolHandler.cs
- XmlElementElement.cs
- ListViewItemMouseHoverEvent.cs
- Freezable.cs
- ArraySubsetEnumerator.cs
- AdapterDictionary.cs
- XPathDocument.cs
- SqlDataReaderSmi.cs
- RightsManagementEncryptionTransform.cs
- TextFormatterHost.cs
- EntityKeyElement.cs
- WeakReadOnlyCollection.cs
- CommandConverter.cs
- UnescapedXmlDiagnosticData.cs
- ResetableIterator.cs
- QuaternionRotation3D.cs
- TypedReference.cs
- ImageAnimator.cs
- AssociatedControlConverter.cs
- _LoggingObject.cs
- TextFindEngine.cs
- NativeCompoundFileAPIs.cs
- MeasureItemEvent.cs
- DesignerObject.cs
- IfJoinedCondition.cs
- HostingEnvironmentException.cs
- DbProviderFactoriesConfigurationHandler.cs
- HttpEncoderUtility.cs
- NameValueConfigurationElement.cs
- webclient.cs
- String.cs
- BitmapCodecInfoInternal.cs
- EncoderParameters.cs
- _Events.cs
- MergePropertyDescriptor.cs
- URLString.cs
- KernelTypeValidation.cs
- Single.cs
- DockPattern.cs
- IdentifierService.cs
- ScriptDescriptor.cs
- TypeBrowser.xaml.cs
- SchemaAttDef.cs
- ConsoleKeyInfo.cs
- ContextDataSourceView.cs
- WindowsTokenRoleProvider.cs
- NativeMethods.cs
- Boolean.cs
- HtmlInputRadioButton.cs
- MatrixCamera.cs
- ToolStripMenuItem.cs
- UIElement.cs
- Separator.cs
- TimeoutHelper.cs
- UniqueConstraint.cs
- AdCreatedEventArgs.cs
- RequestCache.cs
- SQLDecimal.cs
- odbcmetadatacolumnnames.cs
- ThemeableAttribute.cs
- IPPacketInformation.cs
- NativeMethods.cs
- NameObjectCollectionBase.cs
- AspNetPartialTrustHelpers.cs
- FormsAuthenticationModule.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ScriptReferenceEventArgs.cs
- ContentPlaceHolder.cs
- InternalConfigHost.cs
- ReflectionServiceProvider.cs
- FrameworkPropertyMetadata.cs
- Expr.cs
- FieldAccessException.cs
- IsolatedStorage.cs
- ConnectionManagementElementCollection.cs
- HtmlControl.cs
- OdbcRowUpdatingEvent.cs
- ObservableDictionary.cs
- Simplifier.cs