Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 - [....]([....]) - 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
- Ipv6Element.cs
- SchemeSettingElementCollection.cs
- UnsafeNetInfoNativeMethods.cs
- And.cs
- HtmlInputHidden.cs
- ToolStripComboBox.cs
- OpenTypeLayout.cs
- TextBoxBase.cs
- SqlException.cs
- NamespaceQuery.cs
- TypeUsageBuilder.cs
- XPathArrayIterator.cs
- WebPartAddingEventArgs.cs
- XmlnsCompatibleWithAttribute.cs
- HttpCookieCollection.cs
- ClassicBorderDecorator.cs
- NameSpaceEvent.cs
- ViewGenerator.cs
- PointAnimation.cs
- FileDialogCustomPlace.cs
- NamedPipeProcessProtocolHandler.cs
- CssTextWriter.cs
- TextEndOfLine.cs
- OutputScope.cs
- MasterPageParser.cs
- Vector3DKeyFrameCollection.cs
- XmlSchemaCompilationSettings.cs
- PersonalizationDictionary.cs
- InternalConfigSettingsFactory.cs
- InputLanguageProfileNotifySink.cs
- MsmqInputChannelBase.cs
- SelectionGlyphBase.cs
- LogWriteRestartAreaAsyncResult.cs
- EventToken.cs
- ViewStateModeByIdAttribute.cs
- ActiveXHelper.cs
- SQLConvert.cs
- NameValueCollection.cs
- SystemWebSectionGroup.cs
- TextureBrush.cs
- Types.cs
- ToolStripItemEventArgs.cs
- ClientRoleProvider.cs
- CultureTable.cs
- BitmapDecoder.cs
- filewebrequest.cs
- PenCursorManager.cs
- XmlLanguage.cs
- MediaScriptCommandRoutedEventArgs.cs
- DBAsyncResult.cs
- Annotation.cs
- VirtualizedCellInfoCollection.cs
- HwndPanningFeedback.cs
- RoleServiceManager.cs
- WebColorConverter.cs
- RelatedPropertyManager.cs
- WindowsToolbarAsMenu.cs
- ImageMap.cs
- WebPartConnectionsCloseVerb.cs
- ICspAsymmetricAlgorithm.cs
- ApplicationContext.cs
- StylusDevice.cs
- SchemaNames.cs
- Math.cs
- InvalidCastException.cs
- ScrollViewer.cs
- HotCommands.cs
- QilLoop.cs
- TraceListener.cs
- KeyEventArgs.cs
- DataServiceRequestOfT.cs
- GifBitmapEncoder.cs
- rsa.cs
- DataRelationCollection.cs
- PointLight.cs
- LinkLabel.cs
- wgx_exports.cs
- MeasurementDCInfo.cs
- filewebresponse.cs
- ClientConfigurationSystem.cs
- XmlSchemaSimpleType.cs
- ObjectSelectorEditor.cs
- OutgoingWebRequestContext.cs
- DataStreamFromComStream.cs
- VariableAction.cs
- SqlLiftWhereClauses.cs
- MetaData.cs
- ContentElementCollection.cs
- SerializationEventsCache.cs
- Assembly.cs
- Pair.cs
- X509ChainElement.cs
- Transform3DGroup.cs
- DefaultSettingsSection.cs
- ToolStripMenuItem.cs
- ISAPIWorkerRequest.cs
- DataGridViewCellStateChangedEventArgs.cs
- BaseParser.cs
- TextParagraph.cs
- ExpressionBindings.cs