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
- SemanticResultKey.cs
- HyperlinkAutomationPeer.cs
- DataControlFieldCollection.cs
- CompilerResults.cs
- PopupRootAutomationPeer.cs
- Int64.cs
- Native.cs
- ScriptControlManager.cs
- Timeline.cs
- XmlEncodedRawTextWriter.cs
- FixedSOMImage.cs
- RegionIterator.cs
- ScriptRef.cs
- AssociationSetEnd.cs
- NullableLongMinMaxAggregationOperator.cs
- MenuItemBindingCollection.cs
- OutputCacheSettingsSection.cs
- XPathBinder.cs
- ClaimSet.cs
- DetailsViewCommandEventArgs.cs
- FormViewUpdatedEventArgs.cs
- FileDialog_Vista.cs
- QueryResponse.cs
- CounterSample.cs
- TreeIterator.cs
- precedingquery.cs
- EditableLabelControl.cs
- CancelEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- ZoneLinkButton.cs
- StoryFragments.cs
- ProxyOperationRuntime.cs
- DesignerAttributeInfo.cs
- UmAlQuraCalendar.cs
- Geometry3D.cs
- TransformerInfo.cs
- DiagnosticsConfigurationHandler.cs
- QuestionEventArgs.cs
- BaseTypeViewSchema.cs
- MultipleViewProviderWrapper.cs
- SqlMultiplexer.cs
- NewArray.cs
- HttpsHostedTransportConfiguration.cs
- ListViewUpdateEventArgs.cs
- NavigateUrlConverter.cs
- TraversalRequest.cs
- SinglePageViewer.cs
- EnvironmentPermission.cs
- CheckPair.cs
- DependencyStoreSurrogate.cs
- ThreadPoolTaskScheduler.cs
- ArrayExtension.cs
- UndoEngine.cs
- CommandBindingCollection.cs
- x509utils.cs
- HttpResponseInternalWrapper.cs
- OdbcStatementHandle.cs
- AnnotationComponentManager.cs
- TextRunCache.cs
- KnownTypesHelper.cs
- XmlSchemaExternal.cs
- NoneExcludedImageIndexConverter.cs
- ListChangedEventArgs.cs
- ScrollItemPattern.cs
- CodeDirectiveCollection.cs
- GlyphShapingProperties.cs
- SemanticBasicElement.cs
- WaitHandleCannotBeOpenedException.cs
- HttpCookieCollection.cs
- ExternalCalls.cs
- WrappedKeySecurityToken.cs
- EventLogPermissionEntryCollection.cs
- SessionEndingCancelEventArgs.cs
- AnimationClock.cs
- TransformGroup.cs
- Clause.cs
- BCLDebug.cs
- DbConnectionPoolGroupProviderInfo.cs
- CultureTable.cs
- SqlAliaser.cs
- BitSet.cs
- Vars.cs
- NavigationWindow.cs
- DateTimeFormatInfo.cs
- LoadRetryConstantStrategy.cs
- TypeForwardedToAttribute.cs
- XmlCDATASection.cs
- HebrewNumber.cs
- DataGridSortCommandEventArgs.cs
- BehaviorEditorPart.cs
- Binding.cs
- InteropEnvironment.cs
- TextRangeProviderWrapper.cs
- NamespaceDisplay.xaml.cs
- Image.cs
- EndOfStreamException.cs
- TextBoxBase.cs
- EncodingDataItem.cs
- RoutedEventValueSerializer.cs
- SortableBindingList.cs