Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1 / LinkTarget.cs
//----------------------------------------------------------------------------
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
//
// Description:
// Implements the LinkTargetCollection as holder for a collection
// of LinkTarget
//
// History:
// 02/01/2005 - Ming Liu(MingLiu) - Created.
//
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Threading;
using System.Windows.Markup;
//=====================================================================
///
/// LinkTarget is the class that keep name that a named element exist in document
///
public sealed class LinkTarget
{
///
/// The element name
///
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
private string _name;
}
//=====================================================================
///
/// LinkTargetCollection is an ordered collection of LinkTarget
/// It has to implement plain IList because the parser doesn't support
/// generics IList.
///
public sealed class LinkTargetCollection : CollectionBase
{
//--------------------------------------------------------------------
//
// Public Methods
//
//---------------------------------------------------------------------
///
///
///
public LinkTarget this[int index]
{
get
{
return (LinkTarget)((IList)this)[index];
}
set
{
((IList)this)[index] = value;
}
}
///
///
///
public int Add(LinkTarget value)
{
return ((IList)this).Add((object)value);
}
///
///
///
public void Remove(LinkTarget value)
{
((IList)this).Remove((object) value);
}
///
///
///
public bool Contains(LinkTarget value)
{
return ((IList)this).Contains((object)value);
}
///
///
///
public void CopyTo(LinkTarget[] array, int index)
{
((ICollection)this).CopyTo(array, index);
}
///
///
///
public int IndexOf(LinkTarget value)
{
return ((IList)this).IndexOf((object)value);
}
///
///
///
public void Insert(int index, LinkTarget value)
{
((IList)this).Insert(index, (object)value);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
//
// Description:
// Implements the LinkTargetCollection as holder for a collection
// of LinkTarget
//
// History:
// 02/01/2005 - Ming Liu(MingLiu) - Created.
//
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Threading;
using System.Windows.Markup;
//=====================================================================
///
/// LinkTarget is the class that keep name that a named element exist in document
///
public sealed class LinkTarget
{
///
/// The element name
///
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
private string _name;
}
//=====================================================================
///
/// LinkTargetCollection is an ordered collection of LinkTarget
/// It has to implement plain IList because the parser doesn't support
/// generics IList.
///
public sealed class LinkTargetCollection : CollectionBase
{
//--------------------------------------------------------------------
//
// Public Methods
//
//---------------------------------------------------------------------
///
///
///
public LinkTarget this[int index]
{
get
{
return (LinkTarget)((IList)this)[index];
}
set
{
((IList)this)[index] = value;
}
}
///
///
///
public int Add(LinkTarget value)
{
return ((IList)this).Add((object)value);
}
///
///
///
public void Remove(LinkTarget value)
{
((IList)this).Remove((object) value);
}
///
///
///
public bool Contains(LinkTarget value)
{
return ((IList)this).Contains((object)value);
}
///
///
///
public void CopyTo(LinkTarget[] array, int index)
{
((ICollection)this).CopyTo(array, index);
}
///
///
///
public int IndexOf(LinkTarget value)
{
return ((IList)this).IndexOf((object)value);
}
///
///
///
public void Insert(int index, LinkTarget value)
{
((IList)this).Insert(index, (object)value);
}
}
}
// 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
- Select.cs
- Itemizer.cs
- TraceHwndHost.cs
- xmlglyphRunInfo.cs
- SafeSecurityHelper.cs
- DataColumnChangeEvent.cs
- ResponseStream.cs
- TransformConverter.cs
- CaseExpr.cs
- EntityDataSourceQueryBuilder.cs
- XmlHierarchicalDataSourceView.cs
- TypeElementCollection.cs
- RadialGradientBrush.cs
- DocobjHost.cs
- TextMarkerSource.cs
- ApplicationFileCodeDomTreeGenerator.cs
- UnsafeNativeMethods.cs
- WebPartDescriptionCollection.cs
- AtlasWeb.Designer.cs
- panel.cs
- JavaScriptObjectDeserializer.cs
- ErasingStroke.cs
- SqlStream.cs
- PresentationTraceSources.cs
- SafeNativeMethodsOther.cs
- ThreadSafeMessageFilterTable.cs
- RelationshipDetailsRow.cs
- PolicyValidationException.cs
- ReflectPropertyDescriptor.cs
- DialogResultConverter.cs
- SystemDropShadowChrome.cs
- BufferModeSettings.cs
- RegularExpressionValidator.cs
- RowCache.cs
- SecureEnvironment.cs
- ImmutableObjectAttribute.cs
- DesignerTransactionCloseEvent.cs
- WindowsSpinner.cs
- DetailsViewUpdateEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- StubHelpers.cs
- Validator.cs
- ParseChildrenAsPropertiesAttribute.cs
- RegexWriter.cs
- RowType.cs
- SaveFileDialog.cs
- WebEvents.cs
- SchemaSetCompiler.cs
- ProcessRequestArgs.cs
- StringCollectionMarkupSerializer.cs
- ShortcutKeysEditor.cs
- FilePrompt.cs
- ArrayElementGridEntry.cs
- SchemaElement.cs
- TextServicesCompartment.cs
- TagMapInfo.cs
- HMACSHA256.cs
- Classification.cs
- HtmlTitle.cs
- DrawingContextDrawingContextWalker.cs
- EventManager.cs
- FlowLayoutSettings.cs
- RSAProtectedConfigurationProvider.cs
- SectionXmlInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- OrthographicCamera.cs
- MultiDataTrigger.cs
- SessionPageStatePersister.cs
- TypedAsyncResult.cs
- ScrollBarRenderer.cs
- Shape.cs
- BuildManagerHost.cs
- GradientPanel.cs
- Sentence.cs
- autovalidator.cs
- HttpHandler.cs
- MessageEncodingBindingElementImporter.cs
- SingleTagSectionHandler.cs
- Color.cs
- DataFormats.cs
- RtfToken.cs
- SqlBuilder.cs
- BinaryUtilClasses.cs
- CharKeyFrameCollection.cs
- XmlSchemaGroup.cs
- SemanticTag.cs
- StylusPointPropertyInfoDefaults.cs
- TypeElement.cs
- InputQueueChannel.cs
- ImageSource.cs
- Attributes.cs
- Msec.cs
- SerialStream.cs
- CodeSubDirectory.cs
- LinkLabel.cs
- IISMapPath.cs
- LinearKeyFrames.cs
- securitycriticaldata.cs
- PlatformNotSupportedException.cs
- CodeDomConfigurationHandler.cs