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
- UniqueID.cs
- ISessionStateStore.cs
- RawMouseInputReport.cs
- XPathNode.cs
- Clipboard.cs
- UpdateTranslator.cs
- HttpListenerRequestUriBuilder.cs
- SimpleApplicationHost.cs
- SafeSecurityHelper.cs
- SiteMapPath.cs
- UnsafeNativeMethods.cs
- CloseSequenceResponse.cs
- DispatcherOperation.cs
- MenuItemBindingCollection.cs
- XmlAttributeHolder.cs
- IndicShape.cs
- ViewManager.cs
- PropertyInformation.cs
- ProviderManager.cs
- CursorConverter.cs
- ToolboxService.cs
- SessionStateItemCollection.cs
- StorageBasedPackageProperties.cs
- FixedBufferAttribute.cs
- ToolboxComponentsCreatingEventArgs.cs
- SelectionItemPattern.cs
- AdvancedBindingEditor.cs
- DoubleAnimationUsingKeyFrames.cs
- DataKey.cs
- AnnotationMap.cs
- ToolTip.cs
- StagingAreaInputItem.cs
- TextDecorationCollection.cs
- RangeValuePattern.cs
- SqlDataSourceSelectingEventArgs.cs
- ConstNode.cs
- OleDbStruct.cs
- AdRotatorDesigner.cs
- SimpleFileLog.cs
- InstanceData.cs
- GeneratedContractType.cs
- IteratorFilter.cs
- SystemUdpStatistics.cs
- LinkLabel.cs
- XpsPackagingPolicy.cs
- SqlEnums.cs
- CollectionConverter.cs
- BamlTreeMap.cs
- PropertyItem.cs
- ToolboxComponentsCreatingEventArgs.cs
- Viewport3DAutomationPeer.cs
- Baml2006Reader.cs
- TranslateTransform.cs
- ColumnHeaderCollectionEditor.cs
- SoapExtensionReflector.cs
- AssemblyInfo.cs
- GridViewCellAutomationPeer.cs
- Wizard.cs
- UnmanagedHandle.cs
- CorrelationService.cs
- KeyProperty.cs
- ActivityExecutionWorkItem.cs
- HandleCollector.cs
- DataBinder.cs
- PartitionResolver.cs
- WindowsAltTab.cs
- MailWebEventProvider.cs
- PerformanceCounterPermissionEntryCollection.cs
- SafeSecurityHelper.cs
- DirectoryRootQuery.cs
- CheckBoxRenderer.cs
- NotSupportedException.cs
- SoapParser.cs
- SiteIdentityPermission.cs
- BaseServiceProvider.cs
- ADRoleFactory.cs
- HttpCacheVaryByContentEncodings.cs
- AxisAngleRotation3D.cs
- GetPageCompletedEventArgs.cs
- JapaneseCalendar.cs
- DateTimeUtil.cs
- CompatibleIComparer.cs
- EventHandlersStore.cs
- RegexRunnerFactory.cs
- EventLogTraceListener.cs
- ObjectToken.cs
- AxisAngleRotation3D.cs
- CryptoStream.cs
- SoapSchemaImporter.cs
- PasswordDeriveBytes.cs
- SqlFormatter.cs
- Calendar.cs
- _HTTPDateParse.cs
- ExtenderProviderService.cs
- SpeechRecognitionEngine.cs
- AccessViolationException.cs
- ProfileGroupSettings.cs
- RelationshipDetailsCollection.cs
- RuntimeEnvironment.cs
- RuntimeArgumentHandle.cs