Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringConcat.cs
- DbSourceCommand.cs
- CommandDesigner.cs
- ConnectionsZone.cs
- TableItemPatternIdentifiers.cs
- InputReferenceExpression.cs
- RegexWorker.cs
- BitmapEffectDrawingContextWalker.cs
- JavaScriptSerializer.cs
- WebBrowserBase.cs
- TdsParserSafeHandles.cs
- StatusBarDrawItemEvent.cs
- DetailsViewDeleteEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- AsyncOperationManager.cs
- TextRunCacheImp.cs
- EditorAttribute.cs
- LogSwitch.cs
- Hex.cs
- MessageDecoder.cs
- _SafeNetHandles.cs
- SqlComparer.cs
- OrderingInfo.cs
- ResXResourceWriter.cs
- IItemProperties.cs
- ResourceExpressionBuilder.cs
- HttpConfigurationSystem.cs
- _UncName.cs
- EntityDataSourceViewSchema.cs
- AmbientValueAttribute.cs
- PagesSection.cs
- Frame.cs
- UpdateTracker.cs
- TextParagraphView.cs
- CodeNamespaceCollection.cs
- FormatConvertedBitmap.cs
- MenuRenderer.cs
- SpecialNameAttribute.cs
- AudioSignalProblemOccurredEventArgs.cs
- UncommonField.cs
- EventToken.cs
- ListDictionaryInternal.cs
- ReverseComparer.cs
- SettingsSavedEventArgs.cs
- WebPartVerbsEventArgs.cs
- wmiprovider.cs
- DataControlFieldCollection.cs
- PointKeyFrameCollection.cs
- ActivityCompletionCallbackWrapper.cs
- ConstraintConverter.cs
- ExpressionBindings.cs
- PrintPreviewGraphics.cs
- Int32Animation.cs
- Size3D.cs
- OleDbPropertySetGuid.cs
- CqlIdentifiers.cs
- TreeView.cs
- DataFormats.cs
- AdRotator.cs
- SerializationSectionGroup.cs
- SchemaImporterExtensionElement.cs
- HttpProfileGroupBase.cs
- KeyInfo.cs
- HTMLTextWriter.cs
- BinHexEncoder.cs
- SspiHelper.cs
- XPathNodeIterator.cs
- AesManaged.cs
- ViewManagerAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- DocumentViewerBase.cs
- EdmItemError.cs
- util.cs
- RegistrationServices.cs
- ByteArrayHelperWithString.cs
- AppManager.cs
- Padding.cs
- HttpBrowserCapabilitiesBase.cs
- X500Name.cs
- CookieProtection.cs
- NameValueConfigurationElement.cs
- EntityConnectionStringBuilder.cs
- SqlStatistics.cs
- DesignerTransaction.cs
- WindowsImpersonationContext.cs
- TypeDescriptionProvider.cs
- DataControlFieldHeaderCell.cs
- DataControlPagerLinkButton.cs
- TraceSource.cs
- PrintControllerWithStatusDialog.cs
- TimeSpanStorage.cs
- RawUIStateInputReport.cs
- NameTable.cs
- HttpResponseHeader.cs
- SafeNativeMethods.cs
- Variant.cs
- XmlCharCheckingWriter.cs
- SHA384CryptoServiceProvider.cs
- DispatcherHookEventArgs.cs
- SchemaSetCompiler.cs