Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1305600 / 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
- FamilyTypefaceCollection.cs
- TemplatedControlDesigner.cs
- XmlNotation.cs
- ServiceModelSecurityTokenTypes.cs
- FileLoadException.cs
- Rect3D.cs
- HelpKeywordAttribute.cs
- MulticastDelegate.cs
- EdmToObjectNamespaceMap.cs
- XmlDataLoader.cs
- EntityContainerRelationshipSet.cs
- XmlDocumentType.cs
- Pair.cs
- DocumentApplicationJournalEntry.cs
- Ticks.cs
- ProfileSection.cs
- SystemPens.cs
- HttpCachePolicyWrapper.cs
- DataComponentNameHandler.cs
- Subtree.cs
- MediaContext.cs
- DaylightTime.cs
- GCHandleCookieTable.cs
- MenuEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- MethodExpression.cs
- RegisteredExpandoAttribute.cs
- DataServiceExpressionVisitor.cs
- EntityDataSourceEntitySetNameItem.cs
- PtsPage.cs
- LinqExpressionNormalizer.cs
- TraceUtils.cs
- EncryptedType.cs
- ModelUtilities.cs
- PartialToken.cs
- NonClientArea.cs
- DataSourceControlBuilder.cs
- CreatingCookieEventArgs.cs
- xamlnodes.cs
- SortAction.cs
- MimeWriter.cs
- EntityViewGenerationConstants.cs
- ResXFileRef.cs
- SQLDecimal.cs
- ImagingCache.cs
- WebPartCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ByteViewer.cs
- StylusPointDescription.cs
- EditingScope.cs
- JavaScriptString.cs
- ConfigViewGenerator.cs
- GenericAuthenticationEventArgs.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- StringToken.cs
- SizeChangedInfo.cs
- DrawingGroup.cs
- ConvertersCollection.cs
- XmlComplianceUtil.cs
- webbrowsersite.cs
- ModelEditingScope.cs
- DynamicMetaObject.cs
- RecommendedAsConfigurableAttribute.cs
- CodeCatchClauseCollection.cs
- DefaultTraceListener.cs
- AdPostCacheSubstitution.cs
- AutomationPattern.cs
- EventProvider.cs
- DuplicateWaitObjectException.cs
- FontNameConverter.cs
- SystemIPInterfaceStatistics.cs
- ExtentKey.cs
- DispatcherOperation.cs
- CompoundFileStreamReference.cs
- _BaseOverlappedAsyncResult.cs
- SqlTypesSchemaImporter.cs
- WebPartMenuStyle.cs
- CoreSwitches.cs
- StringUtil.cs
- MenuBase.cs
- SpecialFolderEnumConverter.cs
- Transform3DGroup.cs
- XmlIterators.cs
- CollectionAdapters.cs
- SettingsPropertyIsReadOnlyException.cs
- SamlSecurityToken.cs
- CommandValueSerializer.cs
- WebPartConnectionsEventArgs.cs
- PropertyEmitterBase.cs
- ConstNode.cs
- DefaultPropertyAttribute.cs
- httpstaticobjectscollection.cs
- OptionUsage.cs
- SurrogateEncoder.cs
- EntityDataSourceConfigureObjectContext.cs
- ThreadStateException.cs
- BufferedReadStream.cs
- TextRangeEditTables.cs
- SourceLineInfo.cs
- PropertyKey.cs