Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusCollection.cs / 1 / StylusCollection.cs
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
using System;
using System.Windows;
using System.Security;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Media;
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 StylusDeviceCollection : ReadOnlyCollection
{
/////////////////////////////////////////////////////////////////////
internal StylusDeviceCollection(StylusDevice[] styluses)
: base(new List(styluses))
{
}
/////////////////////////////////////////////////////////////////////
///
/// Critical: calls SecurityCritical method stylusDevice.Dispose.
///
[SecurityCritical]
internal void Dispose()
{
foreach (StylusDevice stylusDevice in this.Items)
{
stylusDevice.Dispose();
}
}
/////////////////////////////////////////////////////////////////////
internal void AddStylusDevice(int index, StylusDevice stylusDevice)
{
base.Items.Insert(index, stylusDevice); // add it to our list.
}
}
}
// 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.Security;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Media;
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 StylusDeviceCollection : ReadOnlyCollection
{
/////////////////////////////////////////////////////////////////////
internal StylusDeviceCollection(StylusDevice[] styluses)
: base(new List(styluses))
{
}
/////////////////////////////////////////////////////////////////////
///
/// Critical: calls SecurityCritical method stylusDevice.Dispose.
///
[SecurityCritical]
internal void Dispose()
{
foreach (StylusDevice stylusDevice in this.Items)
{
stylusDevice.Dispose();
}
}
/////////////////////////////////////////////////////////////////////
internal void AddStylusDevice(int index, StylusDevice stylusDevice)
{
base.Items.Insert(index, stylusDevice); // add it to our list.
}
}
}
// 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
- SystemKeyConverter.cs
- TransportBindingElementImporter.cs
- Input.cs
- RenderingBiasValidation.cs
- RichTextBox.cs
- XmlIlVisitor.cs
- RuleRefElement.cs
- TimeSpanMinutesConverter.cs
- ProtectedConfiguration.cs
- ScrollChangedEventArgs.cs
- SocketInformation.cs
- PropertySourceInfo.cs
- XmlTypeMapping.cs
- HtmlElementCollection.cs
- LoadGrammarCompletedEventArgs.cs
- RegexParser.cs
- ObjectQueryProvider.cs
- ObjectReferenceStack.cs
- BitmapEffectvisualstate.cs
- NamespaceListProperty.cs
- ContentOnlyMessage.cs
- SortQuery.cs
- StringCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- Stacktrace.cs
- DetailsViewRow.cs
- COAUTHINFO.cs
- TheQuery.cs
- HwndSource.cs
- CompilationSection.cs
- BamlRecordReader.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- PipeSecurity.cs
- ValidatorCompatibilityHelper.cs
- CodeDefaultValueExpression.cs
- Expressions.cs
- ObjectContext.cs
- CodeObject.cs
- HtmlElement.cs
- DoubleUtil.cs
- ContextInformation.cs
- FillBehavior.cs
- EntityTransaction.cs
- BindingEntityInfo.cs
- MsmqIntegrationChannelListener.cs
- FontEmbeddingManager.cs
- ChannelServices.cs
- SplayTreeNode.cs
- LinearQuaternionKeyFrame.cs
- XslNumber.cs
- FixedDocument.cs
- HyperLinkStyle.cs
- EnvelopedSignatureTransform.cs
- MenuEventArgs.cs
- Psha1DerivedKeyGenerator.cs
- FeatureAttribute.cs
- PkcsMisc.cs
- SecurityElement.cs
- DetailsViewDeleteEventArgs.cs
- StringBuilder.cs
- ObjectDataSource.cs
- FlowLayoutSettings.cs
- BitmapCacheBrush.cs
- UnSafeCharBuffer.cs
- MD5CryptoServiceProvider.cs
- WbmpConverter.cs
- SafeReversePInvokeHandle.cs
- ScriptControl.cs
- TextSelectionHighlightLayer.cs
- ValueSerializer.cs
- WebPartMenu.cs
- PackageRelationship.cs
- AudioLevelUpdatedEventArgs.cs
- DependencyObjectProvider.cs
- DBDataPermissionAttribute.cs
- GeneralTransformGroup.cs
- DynamicValidatorEventArgs.cs
- IriParsingElement.cs
- ImageMetadata.cs
- SourceSwitch.cs
- ItemList.cs
- ControllableStoryboardAction.cs
- PointHitTestParameters.cs
- TeredoHelper.cs
- SelectionEditingBehavior.cs
- ElementNotAvailableException.cs
- ChangePasswordDesigner.cs
- backend.cs
- DummyDataSource.cs
- TranslateTransform.cs
- UrlPath.cs
- CustomAttributeBuilder.cs
- SectionRecord.cs
- CookieParameter.cs
- RightsManagementLicense.cs
- PartManifestEntry.cs
- SqlDataSource.cs
- RIPEMD160.cs
- BypassElementCollection.cs
- CompilerScopeManager.cs