Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonCollection.cs / 1305600 / 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
- ProgressBarRenderer.cs
- UnsupportedPolicyOptionsException.cs
- CompilerErrorCollection.cs
- SqlDataSourceParameterParser.cs
- XmlQueryCardinality.cs
- DragEventArgs.cs
- documentsequencetextcontainer.cs
- ScrollChangedEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- SoundPlayer.cs
- XmlSchemaSimpleTypeUnion.cs
- RewritingPass.cs
- ReachObjectContext.cs
- BidOverLoads.cs
- Assert.cs
- InternalResources.cs
- WebPartConnectionsEventArgs.cs
- Lease.cs
- GacUtil.cs
- CacheDependency.cs
- InputBuffer.cs
- RegionData.cs
- BufferedStream.cs
- DateTimeFormat.cs
- ActivityTypeResolver.xaml.cs
- BaseParser.cs
- CollectionBase.cs
- UserValidatedEventArgs.cs
- GeneralTransformGroup.cs
- Rect3D.cs
- PanelStyle.cs
- CapabilitiesState.cs
- PeerInputChannelListener.cs
- CellCreator.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DoubleLink.cs
- AsyncOperation.cs
- SegmentInfo.cs
- RegistryExceptionHelper.cs
- DictionaryEditChange.cs
- KeyProperty.cs
- UpdateCompiler.cs
- Utils.cs
- InputLanguageManager.cs
- XmlHierarchyData.cs
- EventSinkHelperWriter.cs
- ping.cs
- FixedPosition.cs
- ObjectDataSourceView.cs
- ClaimComparer.cs
- TrackBarRenderer.cs
- PageParserFilter.cs
- InvalidEnumArgumentException.cs
- UIElement3D.cs
- SoapEnumAttribute.cs
- XPathScanner.cs
- UserControlCodeDomTreeGenerator.cs
- RowToFieldTransformer.cs
- SubMenuStyle.cs
- TextElementAutomationPeer.cs
- ParameterToken.cs
- SerializationSectionGroup.cs
- Preprocessor.cs
- __Filters.cs
- ListViewGroupItemCollection.cs
- SqlCacheDependencyDatabase.cs
- LambdaCompiler.Address.cs
- HtmlTableRowCollection.cs
- HierarchicalDataSourceConverter.cs
- ModelTreeEnumerator.cs
- LayoutEvent.cs
- IndicCharClassifier.cs
- HierarchicalDataSourceControl.cs
- DbConnectionPool.cs
- MouseDevice.cs
- FlowSwitch.cs
- XsdCachingReader.cs
- DataViewSetting.cs
- DataGridViewComboBoxCell.cs
- ProfileServiceManager.cs
- BaseConfigurationRecord.cs
- ProvidersHelper.cs
- PersianCalendar.cs
- XmlILOptimizerVisitor.cs
- SchemaImporter.cs
- XhtmlBasicLiteralTextAdapter.cs
- Rotation3D.cs
- FilterableAttribute.cs
- ReachUIElementCollectionSerializerAsync.cs
- RecognizerStateChangedEventArgs.cs
- FontFamily.cs
- DictionaryMarkupSerializer.cs
- GlyphsSerializer.cs
- PropertyGridCommands.cs
- DataGridColumnHeader.cs
- Token.cs
- OracleMonthSpan.cs
- CodePageEncoding.cs
- KnownIds.cs
- remotingproxy.cs