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
- SettingsContext.cs
- WebPageTraceListener.cs
- DoubleAnimationBase.cs
- PathSegmentCollection.cs
- PersonalizableAttribute.cs
- PieceNameHelper.cs
- Rfc2898DeriveBytes.cs
- PublisherMembershipCondition.cs
- CompositeScriptReference.cs
- Attributes.cs
- TogglePattern.cs
- PointHitTestResult.cs
- KeyTimeConverter.cs
- CompiledQuery.cs
- TransactionInformation.cs
- FormViewInsertEventArgs.cs
- HotSpotCollection.cs
- NonBatchDirectoryCompiler.cs
- EntityCommandDefinition.cs
- Int64Converter.cs
- FontTypeConverter.cs
- DragSelectionMessageFilter.cs
- QueuePropertyVariants.cs
- WebPartCancelEventArgs.cs
- TracingConnectionListener.cs
- MinimizableAttributeTypeConverter.cs
- Inline.cs
- IImplicitResourceProvider.cs
- MappingSource.cs
- OleCmdHelper.cs
- ScrollBarRenderer.cs
- ParenthesizePropertyNameAttribute.cs
- SecurityUniqueId.cs
- DelayedRegex.cs
- SqlBulkCopy.cs
- EdmType.cs
- HMACSHA256.cs
- DataServiceProcessingPipeline.cs
- RichTextBoxContextMenu.cs
- Rectangle.cs
- FormattedText.cs
- ConfigurationSectionGroupCollection.cs
- DetailsViewInsertEventArgs.cs
- DocumentXPathNavigator.cs
- PropertyGridCommands.cs
- InstrumentationTracker.cs
- Translator.cs
- SqlServer2KCompatibilityCheck.cs
- OdbcConnectionOpen.cs
- GeneralTransform3DCollection.cs
- FontWeights.cs
- ProtocolsSection.cs
- SqlConnectionStringBuilder.cs
- Ref.cs
- UnsafeNativeMethods.cs
- Line.cs
- CompressionTransform.cs
- VisualStates.cs
- FactoryGenerator.cs
- NamespaceMapping.cs
- UpdateProgress.cs
- ECDiffieHellman.cs
- CommandLibraryHelper.cs
- AtlasWeb.Designer.cs
- ForwardPositionQuery.cs
- ListItemViewAttribute.cs
- OdbcRowUpdatingEvent.cs
- StringHandle.cs
- Cursor.cs
- EnterpriseServicesHelper.cs
- MissingSatelliteAssemblyException.cs
- SafeEventHandle.cs
- TextChangedEventArgs.cs
- LayoutEngine.cs
- ping.cs
- ListBoxItemAutomationPeer.cs
- WebServiceReceive.cs
- PagePropertiesChangingEventArgs.cs
- LinkConverter.cs
- Operator.cs
- Vector.cs
- XPathNavigatorReader.cs
- PackUriHelper.cs
- XmlCDATASection.cs
- ControlBuilder.cs
- ProcessInfo.cs
- ContainerParaClient.cs
- Pts.cs
- XmlSchemaAttributeGroupRef.cs
- _IPv4Address.cs
- Typeface.cs
- AssemblyBuilderData.cs
- StrongName.cs
- Int64AnimationBase.cs
- OptimizedTemplateContent.cs
- IntSecurity.cs
- ThreadSafeMessageFilterTable.cs
- ThicknessAnimationUsingKeyFrames.cs
- ResXResourceReader.cs
- RevocationPoint.cs