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
- ContentElementAutomationPeer.cs
- StoreItemCollection.cs
- CustomAttributeFormatException.cs
- RegexStringValidator.cs
- ImageSourceValueSerializer.cs
- BitmapMetadata.cs
- returneventsaver.cs
- DocumentOrderQuery.cs
- HyperLink.cs
- StrokeNode.cs
- AnonymousIdentificationSection.cs
- PixelShader.cs
- GeometryConverter.cs
- DataGridViewColumnConverter.cs
- XmlSchemaComplexContentExtension.cs
- DefaultHttpHandler.cs
- TextBreakpoint.cs
- IdentityReference.cs
- SystemIPGlobalStatistics.cs
- QuarticEase.cs
- CursorEditor.cs
- SimpleHandlerFactory.cs
- PagesChangedEventArgs.cs
- RtfToken.cs
- DataGridItemEventArgs.cs
- ValueTypeFixupInfo.cs
- MouseOverProperty.cs
- DbConvert.cs
- TextAdaptor.cs
- HttpRawResponse.cs
- ModelTypeConverter.cs
- DbConnectionStringCommon.cs
- MetricEntry.cs
- Bitmap.cs
- RawStylusInput.cs
- FormViewPagerRow.cs
- MultiBindingExpression.cs
- BooleanSwitch.cs
- ReferenceEqualityComparer.cs
- ResXResourceReader.cs
- FillBehavior.cs
- DesignerVerbCollection.cs
- WmfPlaceableFileHeader.cs
- XmlNamespaceMappingCollection.cs
- FormatterServices.cs
- TitleStyle.cs
- DataGridViewElement.cs
- StandardTransformFactory.cs
- DataViewListener.cs
- XomlCompiler.cs
- GatewayDefinition.cs
- TraceData.cs
- DocumentReferenceCollection.cs
- PackageDigitalSignatureManager.cs
- ObjRef.cs
- PointCollection.cs
- BrushMappingModeValidation.cs
- Path.cs
- OracleInfoMessageEventArgs.cs
- _BufferOffsetSize.cs
- ResourceAttributes.cs
- WebBrowserEvent.cs
- PtsCache.cs
- CellNormalizer.cs
- DataGridViewCellStyleConverter.cs
- OptimalTextSource.cs
- MetadataWorkspace.cs
- ResponseBodyWriter.cs
- TrustSection.cs
- PrintDocument.cs
- SQLStringStorage.cs
- XmlQueryCardinality.cs
- GeometryGroup.cs
- GeometryGroup.cs
- DetailsViewUpdatedEventArgs.cs
- ConditionalExpression.cs
- MouseGesture.cs
- AdPostCacheSubstitution.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ProcessThread.cs
- UnsafeNativeMethods.cs
- EventMappingSettingsCollection.cs
- AddInStore.cs
- TailCallAnalyzer.cs
- MostlySingletonList.cs
- Table.cs
- SQLGuidStorage.cs
- SamlAuthenticationStatement.cs
- CodeExporter.cs
- precedingsibling.cs
- JpegBitmapEncoder.cs
- CapabilitiesSection.cs
- EventMappingSettingsCollection.cs
- DocumentOrderComparer.cs
- TheQuery.cs
- activationcontext.cs
- ProxyGenerationError.cs
- FixedSOMPage.cs
- MimeFormatter.cs
- ToolboxItemCollection.cs