Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TextRunCacheImp.cs
- ISAPIApplicationHost.cs
- ButtonPopupAdapter.cs
- DependencyPropertyHelper.cs
- PTUtility.cs
- CharStorage.cs
- StylusPointCollection.cs
- MetadataSerializer.cs
- XmlSerializationReader.cs
- DeflateStreamAsyncResult.cs
- DataGridItemCollection.cs
- StateMachineSubscriptionManager.cs
- Context.cs
- RootProfilePropertySettingsCollection.cs
- elementinformation.cs
- UIElement.cs
- StrongNameKeyPair.cs
- SettingsSection.cs
- JournalEntry.cs
- ReflectionServiceProvider.cs
- ExitEventArgs.cs
- IdentitySection.cs
- ParseChildrenAsPropertiesAttribute.cs
- IfAction.cs
- Vector3DKeyFrameCollection.cs
- nulltextnavigator.cs
- MarkupCompilePass1.cs
- ExpressionVisitor.cs
- InstanceOwnerQueryResult.cs
- ParsedAttributeCollection.cs
- PrtCap_Base.cs
- XmlTextWriter.cs
- RIPEMD160Managed.cs
- UndirectedGraph.cs
- StorageModelBuildProvider.cs
- XamlReader.cs
- ResXResourceWriter.cs
- ConnectionInterfaceCollection.cs
- CountAggregationOperator.cs
- HttpRuntimeSection.cs
- Timer.cs
- DocumentStream.cs
- SerializationInfoEnumerator.cs
- BinaryNode.cs
- QueryGeneratorBase.cs
- DeviceFiltersSection.cs
- HierarchicalDataBoundControl.cs
- InvalidTimeZoneException.cs
- FormattedText.cs
- ConfigXmlText.cs
- ParseChildrenAsPropertiesAttribute.cs
- BitmapEffectDrawingContent.cs
- ScriptControl.cs
- PlanCompilerUtil.cs
- ConfigPathUtility.cs
- WindowsStatic.cs
- FlowDocumentFormatter.cs
- Button.cs
- MulticastDelegate.cs
- DataGridView.cs
- PageSetupDialog.cs
- ColorTransform.cs
- CallContext.cs
- BamlStream.cs
- TemplateColumn.cs
- BulletChrome.cs
- CompositeFontFamily.cs
- SerializationObjectManager.cs
- ImageSource.cs
- NameValuePermission.cs
- PresentationAppDomainManager.cs
- JoinGraph.cs
- FacetValueContainer.cs
- SpeechAudioFormatInfo.cs
- CodeSnippetStatement.cs
- RectangleGeometry.cs
- PropertyReference.cs
- ElementsClipboardData.cs
- GatewayDefinition.cs
- IdentityNotMappedException.cs
- TemplateBindingExpression.cs
- DictionarySectionHandler.cs
- DataServiceStreamResponse.cs
- ClientBuildManagerCallback.cs
- ScriptRef.cs
- _SpnDictionary.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- MetadataItem_Static.cs
- DispatcherObject.cs
- TableLayoutSettingsTypeConverter.cs
- Instrumentation.cs
- x509store.cs
- HtmlInputImage.cs
- DbConnectionHelper.cs
- ServiceBuildProvider.cs
- OLEDB_Enum.cs
- CursorConverter.cs
- ClientEventManager.cs
- ApplicationServiceManager.cs
- SurrogateDataContract.cs