Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TraceUtility.cs
- ReturnEventArgs.cs
- StatusBarItemAutomationPeer.cs
- DataGridViewRowsRemovedEventArgs.cs
- TreeNode.cs
- NamedObject.cs
- XpsDigitalSignature.cs
- NameValueFileSectionHandler.cs
- ParserContext.cs
- SrgsSemanticInterpretationTag.cs
- UseLicense.cs
- ComplusTypeValidator.cs
- TdsValueSetter.cs
- Repeater.cs
- LongTypeConverter.cs
- GraphicsState.cs
- Timeline.cs
- PropertyValue.cs
- ArraySubsetEnumerator.cs
- PeerNearMe.cs
- GridViewDeleteEventArgs.cs
- PagesSection.cs
- UnsafeNativeMethods.cs
- InputScope.cs
- ApplicationCommands.cs
- StorageMappingFragment.cs
- XmlAtomicValue.cs
- EventProperty.cs
- ConfigurationConverterBase.cs
- WebPartConnectionsDisconnectVerb.cs
- SQLCharsStorage.cs
- DesignerUtils.cs
- DataRecordObjectView.cs
- FaultContractInfo.cs
- HttpException.cs
- CodeThrowExceptionStatement.cs
- HostedHttpTransportManager.cs
- HttpDebugHandler.cs
- SystemWebCachingSectionGroup.cs
- EntityContainer.cs
- InteropBitmapSource.cs
- PreProcessInputEventArgs.cs
- HwndAppCommandInputProvider.cs
- FacetDescription.cs
- ProfileSettingsCollection.cs
- RegexFCD.cs
- Zone.cs
- ImageAutomationPeer.cs
- GlyphTypeface.cs
- ValueUtilsSmi.cs
- Perspective.cs
- MultiBindingExpression.cs
- AspProxy.cs
- FormatPage.cs
- ImportedPolicyConversionContext.cs
- XmlWriter.cs
- OleDbCommandBuilder.cs
- FtpRequestCacheValidator.cs
- EditingCommands.cs
- GeneralTransform3D.cs
- EventsTab.cs
- RepeaterDesigner.cs
- Scene3D.cs
- FontFamilyValueSerializer.cs
- CAGDesigner.cs
- AtomServiceDocumentSerializer.cs
- _HeaderInfo.cs
- CaseInsensitiveHashCodeProvider.cs
- InvalidAsynchronousStateException.cs
- Tablet.cs
- DataMisalignedException.cs
- VectorConverter.cs
- Variant.cs
- XamlPointCollectionSerializer.cs
- ServiceOperationWrapper.cs
- Registry.cs
- ModuleBuilderData.cs
- WorkflowInstance.cs
- UserControlCodeDomTreeGenerator.cs
- Comparer.cs
- DiagnosticStrings.cs
- ZipIOExtraFieldElement.cs
- validationstate.cs
- ColorContext.cs
- InstanceData.cs
- XhtmlTextWriter.cs
- UIElement3D.cs
- MdiWindowListStrip.cs
- UriTemplateLiteralPathSegment.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- TextAdaptor.cs
- SizeConverter.cs
- InkCanvasAutomationPeer.cs
- CheckBox.cs
- ElementMarkupObject.cs
- GAC.cs
- TextPattern.cs
- ChannelBinding.cs
- MeasurementDCInfo.cs
- XmlStreamNodeWriter.cs