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
- DataGridViewSelectedRowCollection.cs
- XmlAttributeAttribute.cs
- PageSetupDialog.cs
- TripleDES.cs
- XmlNodeComparer.cs
- ellipse.cs
- PropertyValueUIItem.cs
- TextStore.cs
- ConnectorSelectionGlyph.cs
- ListSortDescription.cs
- DataTableMapping.cs
- CollectionBase.cs
- Block.cs
- TemplateManager.cs
- XmlSchemaAttribute.cs
- KeyPressEvent.cs
- FileUpload.cs
- DesignerTextWriter.cs
- PartManifestEntry.cs
- MemoryPressure.cs
- SimpleFileLog.cs
- Converter.cs
- QueryCacheManager.cs
- PackagingUtilities.cs
- SqlFactory.cs
- DesignerCategoryAttribute.cs
- ObjectParameterCollection.cs
- SafeTimerHandle.cs
- DataDocumentXPathNavigator.cs
- SqlAliasesReferenced.cs
- AccessibleObject.cs
- controlskin.cs
- CodeSnippetExpression.cs
- UnsafeNativeMethods.cs
- BamlRecordReader.cs
- ClientTargetCollection.cs
- StylusButtonCollection.cs
- SqlCachedBuffer.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ZipQueryOperator.cs
- IndentTextWriter.cs
- DataGridViewColumnCollection.cs
- WebPartVerb.cs
- HttpCookiesSection.cs
- ValidationErrorCollection.cs
- Brushes.cs
- ToolStripItemCollection.cs
- XmlNamespaceMapping.cs
- Point3DCollection.cs
- RawTextInputReport.cs
- XXXOnTypeBuilderInstantiation.cs
- Behavior.cs
- WebPartVerb.cs
- filewebresponse.cs
- DrawingContext.cs
- PluggableProtocol.cs
- RegexMatchCollection.cs
- TypeDescriptorContext.cs
- XmlProcessingInstruction.cs
- RootCodeDomSerializer.cs
- TextCompositionEventArgs.cs
- TableCellAutomationPeer.cs
- AdRotatorDesigner.cs
- RevocationPoint.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- _SslState.cs
- PersistenceTypeAttribute.cs
- CodeGroup.cs
- PageThemeCodeDomTreeGenerator.cs
- SQLMembershipProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PartialToken.cs
- EventLogWatcher.cs
- CustomError.cs
- SqlDataSource.cs
- TimeoutHelper.cs
- HttpInputStream.cs
- StylusPointProperty.cs
- CaseStatement.cs
- CommittableTransaction.cs
- TrackingMemoryStream.cs
- XmlIlGenerator.cs
- InstanceKeyCollisionException.cs
- Splitter.cs
- UInt16Converter.cs
- path.cs
- Geometry.cs
- XmlSchemaComplexType.cs
- ToolStripHighContrastRenderer.cs
- LinqDataSourceInsertEventArgs.cs
- StyleSheet.cs
- NetworkAddressChange.cs
- PathBox.cs
- WindowsAuthenticationEventArgs.cs
- TransformGroup.cs
- CompositeFontFamily.cs
- Style.cs
- _ChunkParse.cs
- PolicyException.cs
- OdbcFactory.cs