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
- RemoteWebConfigurationHostServer.cs
- IInstanceContextProvider.cs
- RequestUriProcessor.cs
- RTLAwareMessageBox.cs
- WS2007HttpBinding.cs
- WinEventTracker.cs
- MetaDataInfo.cs
- AffineTransform3D.cs
- CharAnimationUsingKeyFrames.cs
- SynchronizationHandlesCodeDomSerializer.cs
- DynamicControl.cs
- UpdateManifestForBrowserApplication.cs
- RuntimeConfigLKG.cs
- ToolStripTextBox.cs
- InvalidateEvent.cs
- ToolboxComponentsCreatedEventArgs.cs
- WebServiceResponse.cs
- SafeFindHandle.cs
- EdmItemCollection.OcAssemblyCache.cs
- InkCanvasAutomationPeer.cs
- DesignTimeParseData.cs
- FormClosingEvent.cs
- SmiContext.cs
- Convert.cs
- CancelEventArgs.cs
- DesignerActionItem.cs
- ColumnHeader.cs
- SingleAnimation.cs
- BitmapCodecInfoInternal.cs
- PointHitTestParameters.cs
- DataObject.cs
- cookieexception.cs
- KnownBoxes.cs
- ScanQueryOperator.cs
- DesignerContextDescriptor.cs
- NavigationPropertyEmitter.cs
- CharacterBufferReference.cs
- SignedXml.cs
- ToolStripRendererSwitcher.cs
- WindowsTab.cs
- TextMetrics.cs
- PeerContact.cs
- InternalBase.cs
- ObjectListDesigner.cs
- EventArgs.cs
- ScrollBar.cs
- BulletChrome.cs
- XPathBinder.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XPathMultyIterator.cs
- XmlEncodedRawTextWriter.cs
- StringUtil.cs
- ManipulationVelocities.cs
- Tablet.cs
- RadioButtonAutomationPeer.cs
- PeerCollaborationPermission.cs
- ApplicationFileCodeDomTreeGenerator.cs
- State.cs
- PageAdapter.cs
- RectangleConverter.cs
- MenuRendererStandards.cs
- MouseActionConverter.cs
- ToolStripGripRenderEventArgs.cs
- TypeSemantics.cs
- ColumnMapCopier.cs
- ContourSegment.cs
- QueryContinueDragEventArgs.cs
- MenuItemBinding.cs
- Freezable.cs
- DiagnosticsConfigurationHandler.cs
- OracleTransaction.cs
- XPathException.cs
- CacheForPrimitiveTypes.cs
- ZipIOModeEnforcingStream.cs
- RightsManagementEncryptionTransform.cs
- SiteMapNodeItem.cs
- Msec.cs
- AuthenticationModuleElement.cs
- DataTrigger.cs
- TouchesCapturedWithinProperty.cs
- ConfigurationManagerInternal.cs
- DataGridViewBand.cs
- PublisherMembershipCondition.cs
- NumericUpDownAcceleration.cs
- SingleAnimationUsingKeyFrames.cs
- DataGridViewLayoutData.cs
- StringDictionaryWithComparer.cs
- ProvidersHelper.cs
- CryptoProvider.cs
- CustomErrorCollection.cs
- HwndHost.cs
- UserControl.cs
- RoleService.cs
- Cursors.cs
- DelegateTypeInfo.cs
- StringExpressionSet.cs
- HtmlForm.cs
- SinglePhaseEnlistment.cs
- Stroke2.cs
- GeneralTransform3DTo2D.cs