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
- BlobPersonalizationState.cs
- ObjectListShowCommandsEventArgs.cs
- NamespaceMapping.cs
- FontWeightConverter.cs
- PageAsyncTask.cs
- SvcMapFileLoader.cs
- Inflater.cs
- ExpressionBuilder.cs
- dataSvcMapFileLoader.cs
- MenuScrollingVisibilityConverter.cs
- MdiWindowListStrip.cs
- IdentifierCollection.cs
- GridView.cs
- FormViewDeletedEventArgs.cs
- UpdateProgress.cs
- Win32.cs
- SpeechSynthesizer.cs
- ProcessProtocolHandler.cs
- HtmlWindowCollection.cs
- UnsafeNativeMethods.cs
- BaseAppDomainProtocolHandler.cs
- NotificationContext.cs
- MonthCalendar.cs
- RightNameExpirationInfoPair.cs
- QuaternionAnimation.cs
- CDSsyncETWBCLProvider.cs
- FusionWrap.cs
- BitmapEffectDrawing.cs
- JpegBitmapEncoder.cs
- GiveFeedbackEvent.cs
- WizardForm.cs
- X509KeyIdentifierClauseType.cs
- DayRenderEvent.cs
- RelationshipManager.cs
- TypeConverterHelper.cs
- PathFigure.cs
- VarRefManager.cs
- PriorityBindingExpression.cs
- TypeDelegator.cs
- FullTextLine.cs
- FixedHighlight.cs
- ThemeDirectoryCompiler.cs
- DrawListViewColumnHeaderEventArgs.cs
- versioninfo.cs
- WindowsPrincipal.cs
- ListViewGroupCollectionEditor.cs
- ChildDocumentBlock.cs
- DependencySource.cs
- ProcessModelInfo.cs
- InkCanvasAutomationPeer.cs
- StateDesigner.TransitionInfo.cs
- ImageSourceConverter.cs
- QueryCacheKey.cs
- Graphics.cs
- diagnosticsswitches.cs
- PropertyTab.cs
- UIElementCollection.cs
- BoundColumn.cs
- GridViewRowCollection.cs
- StringFormat.cs
- VarInfo.cs
- AsymmetricAlgorithm.cs
- ProgressChangedEventArgs.cs
- StandardBindingImporter.cs
- ToolStripItemRenderEventArgs.cs
- ListenerElementsCollection.cs
- Int16KeyFrameCollection.cs
- AsyncOperationManager.cs
- AsyncOperationManager.cs
- AccessDataSourceDesigner.cs
- NavigationHelper.cs
- StreamInfo.cs
- KeyFrames.cs
- SqlDataReader.cs
- XPathItem.cs
- BinaryConverter.cs
- XsltArgumentList.cs
- WindowsStatic.cs
- JapaneseCalendar.cs
- Exception.cs
- ListViewItem.cs
- ZipPackagePart.cs
- ClientSideProviderDescription.cs
- LinearGradientBrush.cs
- FontSourceCollection.cs
- Range.cs
- Util.cs
- SizeKeyFrameCollection.cs
- DataSourceSerializationException.cs
- ExtendedTransformFactory.cs
- loginstatus.cs
- ListViewItemEventArgs.cs
- ThicknessAnimation.cs
- ToolboxDataAttribute.cs
- SqlRowUpdatingEvent.cs
- CustomPopupPlacement.cs
- ModelItemCollection.cs
- DoubleStorage.cs
- IIS7WorkerRequest.cs
- HtmlLink.cs