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
- HwndHostAutomationPeer.cs
- BitmapEffectDrawingContextWalker.cs
- LookupNode.cs
- PixelFormat.cs
- TrustSection.cs
- Timer.cs
- DbConnectionStringBuilder.cs
- Columns.cs
- PixelFormatConverter.cs
- WeakEventManager.cs
- PerformanceCountersElement.cs
- ExpressionBindingCollection.cs
- SaveFileDialog.cs
- ConvertersCollection.cs
- AutomationPropertyInfo.cs
- TimelineGroup.cs
- DataPagerField.cs
- DynamicPropertyReader.cs
- RemotingConfiguration.cs
- CommonDialog.cs
- SystemPens.cs
- SafeArrayTypeMismatchException.cs
- ExtensionSimplifierMarkupObject.cs
- PlatformCulture.cs
- SiteMapProvider.cs
- IdentityReference.cs
- ReflectionUtil.cs
- ParameterCollection.cs
- ButtonFieldBase.cs
- ThreadPool.cs
- XmlBinaryReader.cs
- ImageFormat.cs
- MessageTraceRecord.cs
- HttpServerChannel.cs
- Utils.cs
- ComponentEditorPage.cs
- Point3D.cs
- Color.cs
- DataGridViewRowHeaderCell.cs
- SerialPort.cs
- ResponseBodyWriter.cs
- TextContainerHelper.cs
- OleDbConnection.cs
- DefaultSection.cs
- UserUseLicenseDictionaryLoader.cs
- BitmapEffect.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DiagnosticsConfigurationHandler.cs
- ContextDataSourceContextData.cs
- EndOfStreamException.cs
- JsonWriter.cs
- AccessControlList.cs
- FlowDocumentFormatter.cs
- CTreeGenerator.cs
- DatePickerDateValidationErrorEventArgs.cs
- ColorAnimation.cs
- TraceUtility.cs
- RtType.cs
- ContextMenuService.cs
- RequiredAttributeAttribute.cs
- PropertySegmentSerializationProvider.cs
- IriParsingElement.cs
- MILUtilities.cs
- SafeReversePInvokeHandle.cs
- GridViewItemAutomationPeer.cs
- CompressionTransform.cs
- DiagnosticsConfigurationHandler.cs
- SelectorItemAutomationPeer.cs
- FacetDescription.cs
- DiscriminatorMap.cs
- ReferentialConstraint.cs
- DispatcherHookEventArgs.cs
- Win32.cs
- Renderer.cs
- DbProviderManifest.cs
- HierarchicalDataBoundControlAdapter.cs
- XslTransform.cs
- EditorPartDesigner.cs
- TemplatePropertyEntry.cs
- DataRowCollection.cs
- EasingKeyFrames.cs
- PerformanceCountersElement.cs
- WebPartDescription.cs
- DataGridViewButtonCell.cs
- ActiveXHelper.cs
- ConnectionManagementSection.cs
- ChangeInterceptorAttribute.cs
- ListView.cs
- SuppressIldasmAttribute.cs
- EntityDataSourceDataSelection.cs
- EventProviderWriter.cs
- HttpClientProtocol.cs
- ReadOnlyCollectionBase.cs
- FusionWrap.cs
- ModelVisual3D.cs
- SessionPageStatePersister.cs
- SqlNodeAnnotation.cs
- CornerRadiusConverter.cs
- sqlpipe.cs
- ThrowHelper.cs