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
- TreeViewBindingsEditorForm.cs
- _AutoWebProxyScriptWrapper.cs
- ObjectTag.cs
- NativeMethods.cs
- Transform.cs
- CodeNamespaceImportCollection.cs
- ConstantExpression.cs
- _NetworkingPerfCounters.cs
- WebServiceHostFactory.cs
- ModelProperty.cs
- XmlNodeChangedEventManager.cs
- BCLDebug.cs
- Descriptor.cs
- DataMemberListEditor.cs
- EntityDataSourceColumn.cs
- TextParentUndoUnit.cs
- FormsAuthenticationEventArgs.cs
- IdentifierCreationService.cs
- DataSourceCollectionBase.cs
- URIFormatException.cs
- RenderData.cs
- MouseGestureValueSerializer.cs
- WebPartHeaderCloseVerb.cs
- TextDecorationCollection.cs
- ClrPerspective.cs
- EndpointDispatcher.cs
- ParentControlDesigner.cs
- ReflectEventDescriptor.cs
- DriveInfo.cs
- PartialCachingAttribute.cs
- CommandBindingCollection.cs
- FontDriver.cs
- PrintDialog.cs
- WindowsTitleBar.cs
- SwitchAttribute.cs
- NetPeerTcpBinding.cs
- cookie.cs
- FocusManager.cs
- BidOverLoads.cs
- InvokePatternIdentifiers.cs
- MetadataCache.cs
- HandoffBehavior.cs
- XmlKeywords.cs
- AmbientLight.cs
- CacheSection.cs
- GraphicsPathIterator.cs
- ResourceCategoryAttribute.cs
- StreamingContext.cs
- SQLDateTime.cs
- ClosableStream.cs
- AsyncCompletedEventArgs.cs
- SystemWebSectionGroup.cs
- MetadataUtilsSmi.cs
- Trace.cs
- TemplateControlParser.cs
- TempFiles.cs
- TextDecorationCollectionConverter.cs
- FontDriver.cs
- GPPOINT.cs
- AssertUtility.cs
- PassportPrincipal.cs
- PropertyManager.cs
- GridViewCommandEventArgs.cs
- CrossContextChannel.cs
- ImageMapEventArgs.cs
- behaviorssection.cs
- AnimationLayer.cs
- ExtractCollection.cs
- DelegatedStream.cs
- ToolBar.cs
- BaseCollection.cs
- ContractBase.cs
- _Rfc2616CacheValidators.cs
- SHA1.cs
- SqlWebEventProvider.cs
- Base64Encoder.cs
- DateTimeFormatInfoScanner.cs
- WebPartMinimizeVerb.cs
- ResourcePool.cs
- ConcurrentStack.cs
- NegationPusher.cs
- CharacterHit.cs
- Point3DIndependentAnimationStorage.cs
- AuthenticateEventArgs.cs
- AssociativeAggregationOperator.cs
- StylusButtonEventArgs.cs
- AuthenticodeSignatureInformation.cs
- IisTraceListener.cs
- VirtualPathUtility.cs
- Currency.cs
- TextSimpleMarkerProperties.cs
- MetafileHeader.cs
- XmlSecureResolver.cs
- PiiTraceSource.cs
- RelationshipDetailsRow.cs
- EntityViewGenerationAttribute.cs
- QilLoop.cs
- RoleManagerEventArgs.cs
- PackUriHelper.cs
- TableLayoutRowStyleCollection.cs