Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PropertyCondition.cs
- BitmapEffectInput.cs
- ValidationSummary.cs
- TypeConverterHelper.cs
- TreeNodeMouseHoverEvent.cs
- GatewayIPAddressInformationCollection.cs
- StrongNameIdentityPermission.cs
- PerformanceCounterManager.cs
- CollectionChangedEventManager.cs
- TableSectionStyle.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- OdbcParameter.cs
- SqlParameter.cs
- SchemaMapping.cs
- StyleXamlParser.cs
- XmlSchemaCompilationSettings.cs
- DragEventArgs.cs
- LogReservationCollection.cs
- ProfileModule.cs
- IPHostEntry.cs
- StateMachineAction.cs
- OleDbTransaction.cs
- NamespaceQuery.cs
- PageContent.cs
- SpotLight.cs
- SQLInt64Storage.cs
- HotSpotCollection.cs
- OptionalRstParameters.cs
- XmlAutoDetectWriter.cs
- SqlHelper.cs
- UriTemplate.cs
- StorageEntityContainerMapping.cs
- Font.cs
- FormCollection.cs
- RuleInfoComparer.cs
- TransformationRules.cs
- FontWeight.cs
- CallSiteHelpers.cs
- Sql8ConformanceChecker.cs
- WorkingDirectoryEditor.cs
- IgnoreDataMemberAttribute.cs
- invalidudtexception.cs
- WebPageTraceListener.cs
- SmuggledIUnknown.cs
- FormatVersion.cs
- RenderContext.cs
- FocusWithinProperty.cs
- KeysConverter.cs
- RadioButtonList.cs
- DataKeyCollection.cs
- __TransparentProxy.cs
- SHA384.cs
- ReceiveContextCollection.cs
- QueryOutputWriter.cs
- ActivityDesignerLayoutSerializers.cs
- SequentialActivityDesigner.cs
- TextContainer.cs
- CellParaClient.cs
- TemplateLookupAction.cs
- TextUtf8RawTextWriter.cs
- HttpProtocolImporter.cs
- KoreanLunisolarCalendar.cs
- SelectingProviderEventArgs.cs
- OrderedDictionary.cs
- GridView.cs
- SecurityTokenSpecification.cs
- DetailsViewDeleteEventArgs.cs
- SchemaNames.cs
- CodeDomConfigurationHandler.cs
- XmlException.cs
- Boolean.cs
- EntityClientCacheKey.cs
- OciEnlistContext.cs
- DataBoundControl.cs
- EncoderParameter.cs
- Expression.cs
- PkcsMisc.cs
- PersianCalendar.cs
- ConfigXmlSignificantWhitespace.cs
- BamlCollectionHolder.cs
- PolyLineSegment.cs
- MemoryStream.cs
- BamlLocalizableResourceKey.cs
- HttpBindingExtension.cs
- KeyValuePairs.cs
- PropertyManager.cs
- PriorityBinding.cs
- baseaxisquery.cs
- WebPartDescription.cs
- RegionIterator.cs
- OrderedHashRepartitionEnumerator.cs
- BamlLocalizabilityResolver.cs
- ScalarConstant.cs
- NamedPipeAppDomainProtocolHandler.cs
- _Win32.cs
- RealizationContext.cs
- AesCryptoServiceProvider.cs
- ThreadPool.cs
- CachedBitmap.cs
- ChildrenQuery.cs