Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DateTimeAutomationPeer.cs
- HybridCollection.cs
- FormsAuthenticationModule.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SelectionHighlightInfo.cs
- WorkflowMarkupSerializerMapping.cs
- CompositeCollection.cs
- WindowsSolidBrush.cs
- CodeDirectionExpression.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SqlConnectionHelper.cs
- ListBoxAutomationPeer.cs
- EntityDataSourceDataSelectionPanel.cs
- Decorator.cs
- LicFileLicenseProvider.cs
- OpCellTreeNode.cs
- DocumentPageView.cs
- ExtensionFile.cs
- RepeaterItemEventArgs.cs
- ExpressionStringBuilder.cs
- SynchronizedDispatch.cs
- listitem.cs
- SelectionPattern.cs
- KeyTimeConverter.cs
- DbException.cs
- documentsequencetextcontainer.cs
- EntityDataSourceMemberPath.cs
- SymbolTable.cs
- LeaseManager.cs
- Int16Animation.cs
- MethodToken.cs
- HostingEnvironmentWrapper.cs
- XmlDeclaration.cs
- DataControlFieldHeaderCell.cs
- CryptoProvider.cs
- ProfilePropertySettings.cs
- WhitespaceSignificantCollectionAttribute.cs
- PartitionResolver.cs
- ToolStripLocationCancelEventArgs.cs
- InvalidateEvent.cs
- RecordsAffectedEventArgs.cs
- StandardTransformFactory.cs
- UserNamePasswordClientCredential.cs
- SelectionWordBreaker.cs
- PageAsyncTask.cs
- ModelService.cs
- WebBrowserContainer.cs
- OperationCanceledException.cs
- Interlocked.cs
- XPathMultyIterator.cs
- WithStatement.cs
- ContentElementAutomationPeer.cs
- Rijndael.cs
- Exceptions.cs
- Stacktrace.cs
- AnimationStorage.cs
- ManageRequest.cs
- BoundingRectTracker.cs
- WpfSharedXamlSchemaContext.cs
- MergePropertyDescriptor.cs
- DesignerCommandSet.cs
- ReaderWriterLock.cs
- JsonEnumDataContract.cs
- XmlDataContract.cs
- OleDbSchemaGuid.cs
- ThreadStartException.cs
- DockPanel.cs
- ManagedFilter.cs
- ActivityStateRecord.cs
- EtwTrackingBehaviorElement.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DictionaryEntry.cs
- GridViewDeleteEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- DataSourceView.cs
- DesignerSerializationOptionsAttribute.cs
- SoapCodeExporter.cs
- OdbcStatementHandle.cs
- exports.cs
- EventListenerClientSide.cs
- NotSupportedException.cs
- SimpleBitVector32.cs
- HierarchicalDataSourceIDConverter.cs
- Comparer.cs
- SqlCommandSet.cs
- UnaryNode.cs
- ConstrainedDataObject.cs
- SrgsElementFactoryCompiler.cs
- WorkflowLayouts.cs
- SafePEFileHandle.cs
- MergeFilterQuery.cs
- XmlComment.cs
- ImageListImage.cs
- TextElementCollectionHelper.cs
- TypeTypeConverter.cs
- FusionWrap.cs
- unitconverter.cs
- AssemblyInfo.cs
- SmiEventSink_DeferedProcessing.cs
- AQNBuilder.cs