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
- OperationCanceledException.cs
- FlowNode.cs
- FormViewAutoFormat.cs
- AttributeEmitter.cs
- MenuAdapter.cs
- StyleCollectionEditor.cs
- SamlDoNotCacheCondition.cs
- TextTreeText.cs
- ListViewItemEventArgs.cs
- EntityContainerEntitySet.cs
- StatusStrip.cs
- SQLChars.cs
- LoadedEvent.cs
- UseLicense.cs
- CacheMemory.cs
- LedgerEntryCollection.cs
- ClientTargetSection.cs
- SetterBase.cs
- XmlDataFileEditor.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RelationshipEndCollection.cs
- ExpandSegmentCollection.cs
- UnsafeNativeMethods.cs
- NamespaceEmitter.cs
- Reference.cs
- OdbcStatementHandle.cs
- CompModSwitches.cs
- BinaryHeap.cs
- UriParserTemplates.cs
- ToolStripDropDownClosingEventArgs.cs
- PriorityBindingExpression.cs
- EntitySetBase.cs
- SessionEndedEventArgs.cs
- TypeElement.cs
- InkCanvasInnerCanvas.cs
- WmfPlaceableFileHeader.cs
- EndpointAddressAugust2004.cs
- TextTreeObjectNode.cs
- WebServiceErrorEvent.cs
- ReferenceCountedObject.cs
- AuthenticationSection.cs
- DataSourceHelper.cs
- SequentialOutput.cs
- ExplicitDiscriminatorMap.cs
- OperationCanceledException.cs
- SettingsProviderCollection.cs
- DialogResultConverter.cs
- TableLayoutStyleCollection.cs
- MessageDroppedTraceRecord.cs
- SqlCacheDependencySection.cs
- TripleDES.cs
- XpsFixedDocumentReaderWriter.cs
- BindingList.cs
- PkcsUtils.cs
- DifferencingCollection.cs
- LineSegment.cs
- BufferedResponseStream.cs
- VisemeEventArgs.cs
- PasswordDeriveBytes.cs
- StyleSheet.cs
- Debug.cs
- _ChunkParse.cs
- VariableQuery.cs
- InternalConfigSettingsFactory.cs
- odbcmetadatacolumnnames.cs
- Exceptions.cs
- DataGridAutomationPeer.cs
- Stream.cs
- xmlsaver.cs
- unsafeIndexingFilterStream.cs
- QilParameter.cs
- ImageCodecInfo.cs
- RegexMatch.cs
- ClientProxyGenerator.cs
- HtmlShim.cs
- SingleTagSectionHandler.cs
- StylusPlugin.cs
- FixedSOMTable.cs
- SettingsAttributeDictionary.cs
- QueryableDataSourceView.cs
- ApplicationServiceManager.cs
- Viewport2DVisual3D.cs
- DataGridColumnDropSeparator.cs
- PictureBox.cs
- HttpProfileGroupBase.cs
- WebResponse.cs
- DataPagerCommandEventArgs.cs
- TransformerConfigurationWizardBase.cs
- SpellerError.cs
- RemoteTokenFactory.cs
- TypeConverterAttribute.cs
- KeyValueSerializer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ExternalCalls.cs
- StateMachineTimers.cs
- BlurBitmapEffect.cs
- PropertyGeneratedEventArgs.cs
- GeometryHitTestParameters.cs
- SoapFormatExtensions.cs
- HwndKeyboardInputProvider.cs