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
- MailHeaderInfo.cs
- SpAudioStreamWrapper.cs
- Floater.cs
- XmlText.cs
- Rules.cs
- WorkflowIdleBehavior.cs
- EventHandlerService.cs
- CursorConverter.cs
- HttpStreamXmlDictionaryReader.cs
- GridViewAutomationPeer.cs
- XmlTextReader.cs
- MetadataArtifactLoaderCompositeFile.cs
- SystemNetworkInterface.cs
- GridViewSelectEventArgs.cs
- GeometryGroup.cs
- SoapExtensionTypeElementCollection.cs
- DataMisalignedException.cs
- PreservationFileWriter.cs
- DataGridViewColumn.cs
- SqlReorderer.cs
- TextTabProperties.cs
- CacheMode.cs
- DataGridViewBand.cs
- CustomErrorsSection.cs
- KeyValueConfigurationElement.cs
- EnumerableRowCollection.cs
- ColorAnimation.cs
- InertiaRotationBehavior.cs
- ObjectManager.cs
- SafePEFileHandle.cs
- ObjectItemCollection.cs
- TreeWalker.cs
- AmbientProperties.cs
- DataGridCellClipboardEventArgs.cs
- ValueUnavailableException.cs
- Nullable.cs
- TextEditorContextMenu.cs
- RC2.cs
- MobileResource.cs
- Separator.cs
- DebuggerAttributes.cs
- StringFormat.cs
- ProfileService.cs
- TypedLocationWrapper.cs
- TextParagraphCache.cs
- EmptyStringExpandableObjectConverter.cs
- XPathNodeList.cs
- DecoderFallbackWithFailureFlag.cs
- ArgumentElement.cs
- SessionPageStatePersister.cs
- GraphicsPath.cs
- X509SecurityTokenAuthenticator.cs
- StrokeNodeOperations.cs
- ReservationNotFoundException.cs
- TreeChangeInfo.cs
- CfgParser.cs
- SystemFonts.cs
- HttpServerVarsCollection.cs
- ConfigXmlCDataSection.cs
- SqlOuterApplyReducer.cs
- ThemeDictionaryExtension.cs
- AssociatedControlConverter.cs
- ToolStripButton.cs
- Encoding.cs
- SqlNode.cs
- Expander.cs
- Material.cs
- MatchingStyle.cs
- AttachInfo.cs
- ClientSettingsStore.cs
- SoapInteropTypes.cs
- CursorConverter.cs
- SessionIDManager.cs
- RolePrincipal.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Button.cs
- KeyEvent.cs
- WindowsSecurityToken.cs
- SetterBaseCollection.cs
- EntityDataSourceChangingEventArgs.cs
- DictionaryBase.cs
- TrackBarRenderer.cs
- OleDbParameterCollection.cs
- DrawingContextFlattener.cs
- Relationship.cs
- GregorianCalendarHelper.cs
- XmlSchemaRedefine.cs
- ListViewDesigner.cs
- ApplicationManager.cs
- ToolStripSystemRenderer.cs
- RemoteWebConfigurationHostServer.cs
- AttributeAction.cs
- JsonReaderWriterFactory.cs
- BinaryKeyIdentifierClause.cs
- DefaultBinder.cs
- SoapIgnoreAttribute.cs
- AttachedPropertyMethodSelector.cs
- TheQuery.cs
- ICspAsymmetricAlgorithm.cs
- DataBoundLiteralControl.cs