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
- RelationshipEndMember.cs
- TrackBarRenderer.cs
- SR.Designer.cs
- AccessedThroughPropertyAttribute.cs
- FileUtil.cs
- RecordConverter.cs
- TypeHelper.cs
- ProgramNode.cs
- InvokeBinder.cs
- LabelLiteral.cs
- UnhandledExceptionEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- OracleEncoding.cs
- DiscoveryClientElement.cs
- BindingFormattingDialog.cs
- ParameterToken.cs
- HitTestParameters.cs
- OleDbConnection.cs
- FontEmbeddingManager.cs
- CharEnumerator.cs
- VSDExceptions.cs
- UpdateManifestForBrowserApplication.cs
- ToolboxItemImageConverter.cs
- PauseStoryboard.cs
- DataViewSetting.cs
- Rijndael.cs
- AsyncResult.cs
- RuntimeConfig.cs
- ConfigurationException.cs
- EntitySetBaseCollection.cs
- PointCollection.cs
- OdbcCommandBuilder.cs
- NeutralResourcesLanguageAttribute.cs
- UnsafePeerToPeerMethods.cs
- HashCodeCombiner.cs
- CachedPathData.cs
- MessageSecurityOverMsmq.cs
- GeneralTransform3D.cs
- SmtpNtlmAuthenticationModule.cs
- Button.cs
- Debug.cs
- CompensateDesigner.cs
- UpdatePanelTriggerCollection.cs
- WebPartTracker.cs
- MsmqIntegrationMessageProperty.cs
- FrameAutomationPeer.cs
- ElementUtil.cs
- Bold.cs
- KeyFrames.cs
- TriggerActionCollection.cs
- MouseActionValueSerializer.cs
- FillRuleValidation.cs
- DataPagerField.cs
- NameSpaceExtractor.cs
- GPStream.cs
- ManipulationVelocities.cs
- CaseStatementProjectedSlot.cs
- HandleCollector.cs
- CallTemplateAction.cs
- PermissionSetTriple.cs
- DataMisalignedException.cs
- ObjectPersistData.cs
- DelimitedListTraceListener.cs
- Scripts.cs
- BamlReader.cs
- ElementUtil.cs
- ButtonField.cs
- DecimalFormatter.cs
- CLSCompliantAttribute.cs
- BrushMappingModeValidation.cs
- ResolveCriteriaApril2005.cs
- TreeView.cs
- RoleManagerModule.cs
- ColorKeyFrameCollection.cs
- isolationinterop.cs
- EditBehavior.cs
- DataGrid.cs
- AttributeConverter.cs
- InputEventArgs.cs
- Msec.cs
- Activity.cs
- MeshGeometry3D.cs
- ILGen.cs
- ImageList.cs
- TextSchema.cs
- QilLiteral.cs
- basemetadatamappingvisitor.cs
- Identifier.cs
- PermissionSet.cs
- BooleanAnimationBase.cs
- DbParameterCollectionHelper.cs
- DataGridViewCellStyleConverter.cs
- ProofTokenCryptoHandle.cs
- DomNameTable.cs
- SignedInfo.cs
- FixedHighlight.cs
- SplitContainer.cs
- CroppedBitmap.cs
- ExtractorMetadata.cs
- ToolStripItemTextRenderEventArgs.cs