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
- HttpClientCertificate.cs
- SmtpFailedRecipientException.cs
- CultureNotFoundException.cs
- PropertyStore.cs
- XamlTemplateSerializer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XamlLoadErrorInfo.cs
- DbConnectionPool.cs
- PrincipalPermission.cs
- HwndTarget.cs
- ClientTarget.cs
- Oci.cs
- XmlSchemaSimpleContent.cs
- Padding.cs
- ListViewItem.cs
- PartialTrustVisibleAssembly.cs
- RoleGroup.cs
- ArrangedElementCollection.cs
- PartialTrustVisibleAssemblyCollection.cs
- BreakSafeBase.cs
- ErrorFormatterPage.cs
- ExtensibleClassFactory.cs
- CatalogZoneAutoFormat.cs
- ListViewAutomationPeer.cs
- VisualTreeHelper.cs
- MemberPath.cs
- ControlTemplate.cs
- Substitution.cs
- QilValidationVisitor.cs
- RootProfilePropertySettingsCollection.cs
- DynamicILGenerator.cs
- SqlDependencyListener.cs
- DateTimeOffsetAdapter.cs
- DesignConnectionCollection.cs
- SystemIPv4InterfaceProperties.cs
- Accessible.cs
- OdbcTransaction.cs
- ComponentConverter.cs
- DataGridViewCellValidatingEventArgs.cs
- CategoryNameCollection.cs
- SendSecurityHeaderElementContainer.cs
- TabPageDesigner.cs
- DataBoundLiteralControl.cs
- TreeNodeMouseHoverEvent.cs
- Queue.cs
- WorkflowItemPresenter.cs
- DataSourceCacheDurationConverter.cs
- RequestQueue.cs
- ArrayElementGridEntry.cs
- SetterBaseCollection.cs
- DesignerAttribute.cs
- TextEditorTables.cs
- InitializationEventAttribute.cs
- UnsafeNativeMethodsCLR.cs
- BuildProvidersCompiler.cs
- DataRecord.cs
- InfoCardSchemas.cs
- JavaScriptObjectDeserializer.cs
- DataGridClipboardCellContent.cs
- ParameterModifier.cs
- ShutDownListener.cs
- PackagingUtilities.cs
- SafeCryptoHandles.cs
- DecimalStorage.cs
- WebRequest.cs
- NativeMethods.cs
- TextParagraph.cs
- PerfCounterSection.cs
- ArgumentException.cs
- SamlAuthenticationClaimResource.cs
- PasswordBox.cs
- WindowsAuthenticationEventArgs.cs
- ArcSegment.cs
- Stacktrace.cs
- FindSimilarActivitiesVerb.cs
- ApplicationServiceManager.cs
- ThreadExceptionDialog.cs
- RadialGradientBrush.cs
- ResourceProviderFactory.cs
- Compiler.cs
- AnnotationMap.cs
- NameObjectCollectionBase.cs
- SwitchLevelAttribute.cs
- XmlSchemaComplexContent.cs
- XmlDataLoader.cs
- AtomicFile.cs
- XslAst.cs
- DiffuseMaterial.cs
- EditingCommands.cs
- StreamInfo.cs
- FrameworkContentElement.cs
- TypeDependencyAttribute.cs
- TypeUnloadedException.cs
- Registry.cs
- SerialReceived.cs
- ProtocolsConfiguration.cs
- BigInt.cs
- WebPartConnectionsEventArgs.cs
- ResourceDictionaryCollection.cs
- DynamicMethod.cs