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
- SoapObjectInfo.cs
- Missing.cs
- PrintingPermission.cs
- HttpRawResponse.cs
- SiteMapNodeItemEventArgs.cs
- StylusLogic.cs
- JpegBitmapEncoder.cs
- NullableFloatMinMaxAggregationOperator.cs
- WebServiceParameterData.cs
- AppearanceEditorPart.cs
- CryptoApi.cs
- ParameterBinding.cs
- DataGridViewUtilities.cs
- FileAuthorizationModule.cs
- EditorZone.cs
- DataTemplate.cs
- DependencyPropertyHelper.cs
- PhysicalFontFamily.cs
- MediaElementAutomationPeer.cs
- BinaryCommonClasses.cs
- SqlDependencyUtils.cs
- ReturnValue.cs
- RbTree.cs
- BamlLocalizabilityResolver.cs
- PartialList.cs
- GenericWebPart.cs
- HttpServerChannel.cs
- DataServiceOperationContext.cs
- ImageDrawing.cs
- EncoderBestFitFallback.cs
- DispatcherHookEventArgs.cs
- WmlValidationSummaryAdapter.cs
- PermissionListSet.cs
- MetadataArtifactLoaderComposite.cs
- Label.cs
- VSWCFServiceContractGenerator.cs
- ChangeProcessor.cs
- MethodBuilderInstantiation.cs
- DPAPIProtectedConfigurationProvider.cs
- WSDualHttpSecurityMode.cs
- TemplateBindingExpressionConverter.cs
- ScrollBarRenderer.cs
- ConfigurationStrings.cs
- OleStrCAMarshaler.cs
- ILGenerator.cs
- OpCodes.cs
- IncomingWebResponseContext.cs
- SignerInfo.cs
- TextDecorationLocationValidation.cs
- PreloadHost.cs
- SignatureToken.cs
- ProfilePropertyNameValidator.cs
- SessionStateUtil.cs
- Soap.cs
- UnSafeCharBuffer.cs
- UnicastIPAddressInformationCollection.cs
- ListViewItem.cs
- DropShadowEffect.cs
- EditorBrowsableAttribute.cs
- DataRowChangeEvent.cs
- DataQuery.cs
- CLSCompliantAttribute.cs
- BitmapEffectCollection.cs
- SectionXmlInfo.cs
- FontFamilyConverter.cs
- OracleConnectionString.cs
- GestureRecognitionResult.cs
- CustomCategoryAttribute.cs
- HttpListenerContext.cs
- Executor.cs
- ProviderCommandInfoUtils.cs
- NativeMethods.cs
- DiscoveryMessageSequence.cs
- ReadOnlyDataSourceView.cs
- DeferredBinaryDeserializerExtension.cs
- Page.cs
- InteropAutomationProvider.cs
- DuplicateWaitObjectException.cs
- ProxyManager.cs
- ClosureBinding.cs
- Parameter.cs
- ResourcesChangeInfo.cs
- XmlImplementation.cs
- ListSortDescriptionCollection.cs
- Screen.cs
- BasicHttpMessageSecurityElement.cs
- PersonalizationProvider.cs
- Setter.cs
- EmptyReadOnlyDictionaryInternal.cs
- SiteMapSection.cs
- WorkflowApplicationEventArgs.cs
- TemplateNameScope.cs
- XmlTextAttribute.cs
- TextBlockAutomationPeer.cs
- LinearKeyFrames.cs
- DataServiceQueryProvider.cs
- ApplicationDirectory.cs
- FixedSOMSemanticBox.cs
- Label.cs
- XmlEventCache.cs