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
- UnsafeNativeMethods.cs
- AffineTransform3D.cs
- XmlUtf8RawTextWriter.cs
- ReferentialConstraint.cs
- CommonObjectSecurity.cs
- BindingExpressionBase.cs
- TemplateLookupAction.cs
- HtmlButton.cs
- CallbackException.cs
- EventMappingSettings.cs
- SendSecurityHeader.cs
- Dispatcher.cs
- MaskDescriptor.cs
- KeyGesture.cs
- OutputScope.cs
- CompilerInfo.cs
- SqlTopReducer.cs
- ActivityInterfaces.cs
- KnownTypes.cs
- DbDataReader.cs
- ApplicationManager.cs
- Light.cs
- ReadWriteObjectLock.cs
- EventLogger.cs
- diagnosticsswitches.cs
- TrailingSpaceComparer.cs
- ProcessHostServerConfig.cs
- PreviewPageInfo.cs
- HandlerMappingMemo.cs
- CheckPair.cs
- Typography.cs
- OledbConnectionStringbuilder.cs
- HtmlTextArea.cs
- SymLanguageVendor.cs
- PtsContext.cs
- MonitoringDescriptionAttribute.cs
- DataPointer.cs
- SplitterPanel.cs
- ProgressiveCrcCalculatingStream.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- HttpResponseBase.cs
- KeyValuePair.cs
- MetadataCacheItem.cs
- Triplet.cs
- TextServicesProperty.cs
- AppDomain.cs
- AttributeQuery.cs
- XPathException.cs
- HealthMonitoringSection.cs
- PointAnimationClockResource.cs
- DefaultTextStoreTextComposition.cs
- PackagePartCollection.cs
- CalendarKeyboardHelper.cs
- HttpConfigurationContext.cs
- RoutedEventHandlerInfo.cs
- EdgeModeValidation.cs
- Point3DConverter.cs
- DbConnectionPoolGroupProviderInfo.cs
- X509Certificate2Collection.cs
- SQLRoleProvider.cs
- ResourceDisplayNameAttribute.cs
- ScaleTransform.cs
- WebBrowserPermission.cs
- InvalidAsynchronousStateException.cs
- DeflateInput.cs
- PolicyManager.cs
- TreeViewCancelEvent.cs
- GeneralTransform3DTo2D.cs
- DocumentScope.cs
- TypeCacheManager.cs
- LostFocusEventManager.cs
- TemplateColumn.cs
- SystemEvents.cs
- DesignerOptionService.cs
- XmlEntityReference.cs
- EventLogPermission.cs
- ExpressionVisitor.cs
- AdornerHitTestResult.cs
- PeerEndPoint.cs
- SamlConstants.cs
- HttpStaticObjectsCollectionBase.cs
- GridViewItemAutomationPeer.cs
- SqlComparer.cs
- DefaultHttpHandler.cs
- XmlWrappingReader.cs
- SynchronizedCollection.cs
- baseshape.cs
- DisplayClaim.cs
- HashAlgorithm.cs
- HealthMonitoringSection.cs
- ReaderWriterLockWrapper.cs
- ScrollData.cs
- NegatedCellConstant.cs
- NextPreviousPagerField.cs
- ContentControl.cs
- LabelDesigner.cs
- DynamicResourceExtensionConverter.cs
- SecuritySessionFilter.cs
- RouteCollection.cs
- EarlyBoundInfo.cs