Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DateTimeFormatInfoScanner.cs
- DispatcherExceptionEventArgs.cs
- FactoryGenerator.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- StrongNameKeyPair.cs
- Comparer.cs
- ObjectSet.cs
- AddInStore.cs
- Cast.cs
- ScriptRegistrationManager.cs
- FontSource.cs
- CompilerErrorCollection.cs
- XmlSchemaExternal.cs
- TemplateEditingService.cs
- Schema.cs
- AddressHeader.cs
- WorkflowTraceTransfer.cs
- WebPartActionVerb.cs
- filewebrequest.cs
- SourceElementsCollection.cs
- GradientStop.cs
- RelationalExpressions.cs
- DragStartedEventArgs.cs
- WebPartDisplayModeEventArgs.cs
- SessionStateSection.cs
- OdbcEnvironment.cs
- RuleSetReference.cs
- HttpCapabilitiesBase.cs
- validationstate.cs
- FlowDocumentPage.cs
- InvalidComObjectException.cs
- StandardCommandToolStripMenuItem.cs
- Vector3DValueSerializer.cs
- NetworkInformationException.cs
- FixedSOMPage.cs
- ConfigurationValidatorBase.cs
- DispatcherSynchronizationContext.cs
- GestureRecognitionResult.cs
- DataGridRow.cs
- XmlSchemaSet.cs
- DbCommandTree.cs
- SqlBuffer.cs
- ModifiableIteratorCollection.cs
- baseaxisquery.cs
- UInt16Converter.cs
- ProtocolReflector.cs
- DataGridViewTopRowAccessibleObject.cs
- DefaultAsyncDataDispatcher.cs
- Paragraph.cs
- CompilerErrorCollection.cs
- SolidColorBrush.cs
- FixedSOMTable.cs
- LinkUtilities.cs
- CodeArgumentReferenceExpression.cs
- RawKeyboardInputReport.cs
- DirectionalLight.cs
- TextEncodedRawTextWriter.cs
- WebSysDisplayNameAttribute.cs
- Evidence.cs
- Pair.cs
- ChangeInterceptorAttribute.cs
- DynamicScriptObject.cs
- Command.cs
- TextLine.cs
- OleAutBinder.cs
- DeferredBinaryDeserializerExtension.cs
- RoutingService.cs
- SqlDataSourceParameterParser.cs
- NamespaceInfo.cs
- StyleTypedPropertyAttribute.cs
- TypeDependencyAttribute.cs
- XmlUtil.cs
- TimeSpanConverter.cs
- NumberAction.cs
- DesignerAttribute.cs
- CultureInfoConverter.cs
- ScaleTransform3D.cs
- RecipientInfo.cs
- RoutedPropertyChangedEventArgs.cs
- InitializeCorrelation.cs
- DrawingAttributeSerializer.cs
- HwndSubclass.cs
- PropertyDescriptor.cs
- ServiceObjectContainer.cs
- RtType.cs
- RadioButton.cs
- FormattedText.cs
- OracleParameterBinding.cs
- LabelAutomationPeer.cs
- BinaryMessageEncoder.cs
- ReadOnlyTernaryTree.cs
- DeviceOverridableAttribute.cs
- SqlTransaction.cs
- ValidationRule.cs
- AssemblyNameProxy.cs
- MessageBox.cs
- DetailsViewPageEventArgs.cs
- XamlTreeBuilderBamlRecordWriter.cs
- JsonQNameDataContract.cs
- ObjectTypeMapping.cs