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
- Int32CAMarshaler.cs
- SqlClientFactory.cs
- OpenTypeLayout.cs
- PowerModeChangedEventArgs.cs
- Common.cs
- DataTablePropertyDescriptor.cs
- MsmqBindingElementBase.cs
- ClonableStack.cs
- SHA384.cs
- ThreadStateException.cs
- DbDataAdapter.cs
- AttachedPropertyMethodSelector.cs
- Drawing.cs
- RotateTransform3D.cs
- SqlFunctionAttribute.cs
- CheckBoxAutomationPeer.cs
- ObjectNavigationPropertyMapping.cs
- BuildProviderCollection.cs
- NumericUpDown.cs
- CompilationUtil.cs
- PreviewKeyDownEventArgs.cs
- SortAction.cs
- SiteMap.cs
- LocalFileSettingsProvider.cs
- ByteRangeDownloader.cs
- MILUtilities.cs
- AttachedAnnotation.cs
- XmlQueryContext.cs
- AlphabeticalEnumConverter.cs
- ReturnEventArgs.cs
- PropertyTabChangedEvent.cs
- InfoCardXmlSerializer.cs
- ViewManager.cs
- SqlDependencyListener.cs
- ContextStack.cs
- CapabilitiesSection.cs
- BezierSegment.cs
- HyperLink.cs
- FamilyTypeface.cs
- XmlHierarchicalDataSourceView.cs
- DSASignatureFormatter.cs
- BitFlagsGenerator.cs
- SHA384Managed.cs
- DelegatedStream.cs
- XPathSelectionIterator.cs
- BuildProviderCollection.cs
- CalendarModeChangedEventArgs.cs
- ClonableStack.cs
- SharedPerformanceCounter.cs
- TreeNodeCollection.cs
- HtmlInputReset.cs
- SourceChangedEventArgs.cs
- GeometryHitTestParameters.cs
- Group.cs
- AuthenticationModulesSection.cs
- StateMachine.cs
- DynamicObject.cs
- M3DUtil.cs
- PointAnimationUsingKeyFrames.cs
- EmptyEnumerator.cs
- StateDesigner.CommentLayoutGlyph.cs
- ResourceAssociationTypeEnd.cs
- NetTcpBindingCollectionElement.cs
- NamedPipeChannelFactory.cs
- MimeTypePropertyAttribute.cs
- XmlUtil.cs
- SecureEnvironment.cs
- DataSetUtil.cs
- MSHTMLHostUtil.cs
- DesignerAttribute.cs
- HtmlTableRow.cs
- Vector3DCollection.cs
- DetailsViewInsertedEventArgs.cs
- Accessible.cs
- XamlSerializer.cs
- UInt16Storage.cs
- Bold.cs
- DefaultClaimSet.cs
- InvokeProviderWrapper.cs
- WebColorConverter.cs
- Fonts.cs
- ExpandCollapseProviderWrapper.cs
- ResourceDefaultValueAttribute.cs
- sqlnorm.cs
- TextBoxAutoCompleteSourceConverter.cs
- HandlerElement.cs
- TypeTypeConverter.cs
- DocumentStream.cs
- WebPartDisplayMode.cs
- GlobalizationAssembly.cs
- PublisherMembershipCondition.cs
- CalendarAutomationPeer.cs
- FixedFindEngine.cs
- MetadataCache.cs
- DataSpaceManager.cs
- SqlFileStream.cs
- OutputChannelBinder.cs
- ActivityInterfaces.cs
- Subtree.cs
- Relationship.cs