Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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 - 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. //---------------------------------------------------------------------------- //// 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
- BeginEvent.cs
- ErrorFormatterPage.cs
- CodeCompiler.cs
- WebServicesSection.cs
- EncodingInfo.cs
- ServiceOperationWrapper.cs
- Graph.cs
- ConfigUtil.cs
- DataObjectFieldAttribute.cs
- TextInfo.cs
- TraceInternal.cs
- Menu.cs
- Int16AnimationBase.cs
- LayoutEngine.cs
- UIElement3DAutomationPeer.cs
- DecoderFallback.cs
- XmlTextAttribute.cs
- LinkLabel.cs
- ComponentResourceKeyConverter.cs
- VerticalAlignConverter.cs
- NativeMethods.cs
- ConnectionProviderAttribute.cs
- SoapAttributeOverrides.cs
- WinFormsUtils.cs
- ConfigurationStrings.cs
- ClientRuntimeConfig.cs
- EntitySqlException.cs
- FormsAuthenticationCredentials.cs
- InputMethodStateTypeInfo.cs
- entitydatasourceentitysetnameconverter.cs
- TextBlockAutomationPeer.cs
- DecoderExceptionFallback.cs
- XmlSignificantWhitespace.cs
- MimeBasePart.cs
- OleDbTransaction.cs
- TemplateNameScope.cs
- RegexFCD.cs
- UnhandledExceptionEventArgs.cs
- TypeElement.cs
- WindowsUpDown.cs
- ObjectHandle.cs
- Simplifier.cs
- Vector3DValueSerializer.cs
- FormatterConverter.cs
- AtomServiceDocumentSerializer.cs
- TypeInfo.cs
- ObjectList.cs
- TraceEventCache.cs
- PipelineModuleStepContainer.cs
- LineSegment.cs
- HostedHttpContext.cs
- Effect.cs
- ConfigXmlText.cs
- TableLayoutSettingsTypeConverter.cs
- DodSequenceMerge.cs
- CompilationSection.cs
- InvalidMessageContractException.cs
- MissingMethodException.cs
- PermissionRequestEvidence.cs
- NameValueConfigurationElement.cs
- RuleInfoComparer.cs
- SystemBrushes.cs
- XmlSignatureManifest.cs
- SqlDataSourceTableQuery.cs
- MatcherBuilder.cs
- VisualState.cs
- AttachInfo.cs
- MimeMapping.cs
- MimeTypeAttribute.cs
- TargetException.cs
- UserControl.cs
- BindUriHelper.cs
- WebServiceAttribute.cs
- ToolStripGrip.cs
- SHA256.cs
- DbConnectionPoolCounters.cs
- TrackingProfileManager.cs
- SerializationFieldInfo.cs
- _AutoWebProxyScriptWrapper.cs
- SpotLight.cs
- ExtendedPropertyDescriptor.cs
- AlignmentXValidation.cs
- RepeaterItem.cs
- Convert.cs
- RuntimeCompatibilityAttribute.cs
- DnsCache.cs
- XmlSubtreeReader.cs
- ToolStripMenuItem.cs
- ThreadStaticAttribute.cs
- DataServiceRequestArgs.cs
- XamlSerializerUtil.cs
- UnsafeNativeMethods.cs
- FilteredXmlReader.cs
- ComponentDispatcher.cs
- EntitySetRetriever.cs
- HttpAsyncResult.cs
- BlurEffect.cs
- OleTxTransaction.cs
- ExclusiveTcpListener.cs
- CellQuery.cs