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
- WebDescriptionAttribute.cs
- RsaElement.cs
- ReadWriteSpinLock.cs
- SqlLiftIndependentRowExpressions.cs
- InvokeAction.cs
- CharEntityEncoderFallback.cs
- ProfileSettings.cs
- InOutArgumentConverter.cs
- CellNormalizer.cs
- Convert.cs
- ButtonAutomationPeer.cs
- WebRequestModuleElement.cs
- IISUnsafeMethods.cs
- SqlBuilder.cs
- InternalMappingException.cs
- WebCodeGenerator.cs
- SoapServerProtocol.cs
- TextDecorationCollection.cs
- QilParameter.cs
- SBCSCodePageEncoding.cs
- WebBrowserHelper.cs
- ReachSerializerAsync.cs
- EmissiveMaterial.cs
- BindingOperations.cs
- PTManager.cs
- Command.cs
- LineInfo.cs
- shaperfactoryquerycachekey.cs
- NullableDecimalSumAggregationOperator.cs
- AsymmetricCryptoHandle.cs
- ErrorTableItemStyle.cs
- SmiMetaData.cs
- ProxyWebPartManagerDesigner.cs
- FontFaceLayoutInfo.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- Rect.cs
- RequestQueue.cs
- XmlMemberMapping.cs
- FixUp.cs
- DataPagerFieldCommandEventArgs.cs
- EntityDataSourceUtil.cs
- DesignerImageAdapter.cs
- serverconfig.cs
- SimpleHandlerFactory.cs
- System.Data_BID.cs
- AppDomainFactory.cs
- ConnectionPointCookie.cs
- StorageConditionPropertyMapping.cs
- SQlBooleanStorage.cs
- InfoCardProofToken.cs
- DrawingCollection.cs
- OpCodes.cs
- DataGridTableCollection.cs
- MultiView.cs
- SqlDependencyListener.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebPartCatalogAddVerb.cs
- QilInvoke.cs
- ClientBuildManager.cs
- DesignerActionPropertyItem.cs
- WebPartMenuStyle.cs
- GradientStop.cs
- CodeVariableDeclarationStatement.cs
- TextServicesCompartment.cs
- MenuItem.cs
- ActivityCodeDomReferenceService.cs
- RectangleGeometry.cs
- CompiledQueryCacheKey.cs
- DecimalAnimationBase.cs
- BitmapCache.cs
- SqlGatherConsumedAliases.cs
- PreservationFileWriter.cs
- EncryptedData.cs
- PackageStore.cs
- BindingManagerDataErrorEventArgs.cs
- TraceHandlerErrorFormatter.cs
- MissingMethodException.cs
- AxisAngleRotation3D.cs
- Drawing.cs
- EventHandlersStore.cs
- XmlNullResolver.cs
- CodeTypeDeclarationCollection.cs
- StatusBarAutomationPeer.cs
- UserNamePasswordValidator.cs
- UnmanagedMemoryStreamWrapper.cs
- MultiPageTextView.cs
- UpdateManifestForBrowserApplication.cs
- ControlValuePropertyAttribute.cs
- WebBrowsableAttribute.cs
- ColorMap.cs
- AutomationPropertyInfo.cs
- SerializableAttribute.cs
- BigInt.cs
- Pointer.cs
- Attribute.cs
- MetadataCacheItem.cs
- WebPartVerbsEventArgs.cs
- SQLDoubleStorage.cs
- DmlSqlGenerator.cs
- FileDialogCustomPlacesCollection.cs