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
- PathGradientBrush.cs
- objectquery_tresulttype.cs
- TypeCollectionDesigner.xaml.cs
- ReferentialConstraintRoleElement.cs
- ClickablePoint.cs
- DateTimeAutomationPeer.cs
- SqlDataSourceCache.cs
- OperatingSystem.cs
- JavaScriptSerializer.cs
- UnionQueryOperator.cs
- WebBrowserHelper.cs
- RootDesignerSerializerAttribute.cs
- TemplateBindingExtension.cs
- Model3DGroup.cs
- PasswordBox.cs
- SettingsAttributes.cs
- TextEffectResolver.cs
- FindCriteriaElement.cs
- FilterQueryOptionExpression.cs
- HttpHandlerAction.cs
- UnsafeNativeMethods.cs
- DynamicRendererThreadManager.cs
- RtType.cs
- ComboBoxAutomationPeer.cs
- EncryptedType.cs
- EditingScopeUndoUnit.cs
- SystemSounds.cs
- TdsRecordBufferSetter.cs
- Query.cs
- BuildProvider.cs
- AnnotationAuthorChangedEventArgs.cs
- MatrixAnimationUsingPath.cs
- HttpBindingExtension.cs
- UInt16Storage.cs
- UnsafeNativeMethods.cs
- CodeAttributeDeclarationCollection.cs
- indexingfiltermarshaler.cs
- ReachPageContentCollectionSerializer.cs
- SmiMetaData.cs
- SerializerProvider.cs
- DrawingBrush.cs
- ValidationResult.cs
- KeyboardDevice.cs
- QuaternionConverter.cs
- InplaceBitmapMetadataWriter.cs
- Hyperlink.cs
- BinaryHeap.cs
- XmlSchemaElement.cs
- DependencyPropertyChangedEventArgs.cs
- InternalRelationshipCollection.cs
- ViewStateAttachedPropertyFeature.cs
- WrapPanel.cs
- EpmSyndicationContentSerializer.cs
- Walker.cs
- DataServiceHostFactory.cs
- DrawListViewColumnHeaderEventArgs.cs
- RequestCacheValidator.cs
- ListBoxItemWrapperAutomationPeer.cs
- ReversePositionQuery.cs
- HuffModule.cs
- GroupDescription.cs
- SynchronizingStream.cs
- SQLInt16Storage.cs
- ListControlActionList.cs
- FileUtil.cs
- XPathQueryGenerator.cs
- ApplicationId.cs
- _AutoWebProxyScriptWrapper.cs
- ExpressionVisitor.cs
- RadioButtonRenderer.cs
- AddingNewEventArgs.cs
- DataListItem.cs
- XmlValueConverter.cs
- HttpWebResponse.cs
- SQLDateTime.cs
- EncoderBestFitFallback.cs
- CodeIndexerExpression.cs
- PeerNodeAddress.cs
- TextRangeEditLists.cs
- ResourceManager.cs
- WebPartPersonalization.cs
- DeviceContexts.cs
- ProfessionalColorTable.cs
- LinkDescriptor.cs
- Panel.cs
- UnitySerializationHolder.cs
- MailMessageEventArgs.cs
- updatecommandorderer.cs
- SafeSecurityHelper.cs
- BufferedWebEventProvider.cs
- AmbientEnvironment.cs
- PageCatalogPart.cs
- RegionInfo.cs
- SignatureToken.cs
- EnumMember.cs
- HtmlElementEventArgs.cs
- ColumnResult.cs
- FusionWrap.cs
- GroupDescription.cs
- CodeArrayCreateExpression.cs