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
- MenuCommand.cs
- NativeMethods.cs
- ReadOnlyCollection.cs
- FileSystemEventArgs.cs
- CheckBoxPopupAdapter.cs
- Profiler.cs
- ThreadExceptionDialog.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Stack.cs
- ContractReference.cs
- DelegateSerializationHolder.cs
- MsmqIntegrationInputChannel.cs
- DependencyPropertyAttribute.cs
- ListViewInsertedEventArgs.cs
- Regex.cs
- CodeTypeMember.cs
- SpellerError.cs
- CreatingCookieEventArgs.cs
- Win32Native.cs
- SmiContextFactory.cs
- XXXOnTypeBuilderInstantiation.cs
- SplitterPanel.cs
- SerializationEventsCache.cs
- MediaScriptCommandRoutedEventArgs.cs
- RadioButtonList.cs
- ExecutionEngineException.cs
- _UriSyntax.cs
- TimersDescriptionAttribute.cs
- ReflectEventDescriptor.cs
- EmbeddedMailObjectsCollection.cs
- HashAlgorithm.cs
- HtmlShim.cs
- TimerExtension.cs
- ExceptionUtil.cs
- TextFormatter.cs
- Message.cs
- MessageFilter.cs
- _HeaderInfoTable.cs
- ComponentFactoryHelpers.cs
- SecurityPolicyVersion.cs
- WebPartTracker.cs
- ClientTargetSection.cs
- CleanUpVirtualizedItemEventArgs.cs
- TargetFrameworkAttribute.cs
- SoapIncludeAttribute.cs
- CellRelation.cs
- CodeDOMProvider.cs
- RemoteWebConfigurationHostServer.cs
- PolygonHotSpot.cs
- FloatUtil.cs
- NativeMethods.cs
- XmlQueryOutput.cs
- HelpFileFileNameEditor.cs
- InstanceHandle.cs
- ModelTreeEnumerator.cs
- SafeNativeMethods.cs
- DefaultValueMapping.cs
- ControlBuilderAttribute.cs
- NodeLabelEditEvent.cs
- FtpCachePolicyElement.cs
- TreeViewItemAutomationPeer.cs
- SecondaryIndexDefinition.cs
- WorkflowLayouts.cs
- COM2Enum.cs
- MediaPlayer.cs
- DefaultSerializationProviderAttribute.cs
- RoleManagerModule.cs
- ReflectPropertyDescriptor.cs
- BitmapInitialize.cs
- WebPartTransformer.cs
- DiscreteKeyFrames.cs
- ImageAttributes.cs
- TargetFrameworkUtil.cs
- NetTcpSecurity.cs
- PassportPrincipal.cs
- StateMachine.cs
- DesignerWidgets.cs
- VirtualPathUtility.cs
- BufferedStream.cs
- CodeBinaryOperatorExpression.cs
- GlobalizationSection.cs
- HttpAsyncResult.cs
- DataGridViewRowsAddedEventArgs.cs
- UniqueContractNameValidationBehavior.cs
- ListSourceHelper.cs
- WindowsAuthenticationModule.cs
- RoleServiceManager.cs
- XamlSerializerUtil.cs
- ViewgenContext.cs
- COAUTHIDENTITY.cs
- WindowsFormsSynchronizationContext.cs
- PersonalizablePropertyEntry.cs
- FormViewInsertedEventArgs.cs
- SerTrace.cs
- InkCanvasFeedbackAdorner.cs
- HtmlTableRow.cs
- CellIdBoolean.cs
- Tuple.cs
- FixUp.cs
- namescope.cs