Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- InterleavedZipPartStream.cs
- SectionRecord.cs
- WebZone.cs
- CreateParams.cs
- Point.cs
- SoapAttributeOverrides.cs
- RelationshipWrapper.cs
- DetailsViewUpdateEventArgs.cs
- VectorValueSerializer.cs
- ApplicationException.cs
- InOutArgument.cs
- GPStream.cs
- GridViewDeletedEventArgs.cs
- Enum.cs
- GridView.cs
- ValidationError.cs
- BlobPersonalizationState.cs
- Utils.cs
- RepeatBehavior.cs
- FacetEnabledSchemaElement.cs
- PromptStyle.cs
- CheckBox.cs
- SeparatorAutomationPeer.cs
- DataBindingHandlerAttribute.cs
- SessionStateUtil.cs
- AlignmentYValidation.cs
- XmlSignatureManifest.cs
- NumberFormatter.cs
- KeyValueSerializer.cs
- ReflectionTypeLoadException.cs
- ProfileGroupSettings.cs
- PeerCustomResolverSettings.cs
- TextBox.cs
- Property.cs
- HttpCapabilitiesSectionHandler.cs
- UniqueIdentifierService.cs
- ComboBox.cs
- XPathMessageFilterElement.cs
- BinarySerializer.cs
- SocketAddress.cs
- FieldMetadata.cs
- SelectedDatesCollection.cs
- Typeface.cs
- XXXInfos.cs
- RootNamespaceAttribute.cs
- SystemColors.cs
- MsmqIntegrationMessageProperty.cs
- ImageMap.cs
- ExpressionBinding.cs
- ControlLocalizer.cs
- EnumerableRowCollection.cs
- TimeSpanOrInfiniteConverter.cs
- _SingleItemRequestCache.cs
- SiteMembershipCondition.cs
- InheritanceAttribute.cs
- ZipIOExtraFieldPaddingElement.cs
- ModelProperty.cs
- DateBoldEvent.cs
- QueryReaderSettings.cs
- ADMembershipProvider.cs
- FilterException.cs
- CompModSwitches.cs
- XmlConvert.cs
- SqlClientFactory.cs
- DecoratedNameAttribute.cs
- MarkedHighlightComponent.cs
- DynamicILGenerator.cs
- PropertyEntry.cs
- ManagedCodeMarkers.cs
- MimeTypeAttribute.cs
- PointF.cs
- ScrollBarRenderer.cs
- SettingsPropertyValue.cs
- ITreeGenerator.cs
- XmlAttributes.cs
- SchemaLookupTable.cs
- MetadataSerializer.cs
- WebPartEditorCancelVerb.cs
- DetailsView.cs
- ChannelManager.cs
- Timeline.cs
- Inline.cs
- FilteredDataSetHelper.cs
- XmlElementCollection.cs
- CheckBoxPopupAdapter.cs
- ListComponentEditorPage.cs
- SchemaCollectionPreprocessor.cs
- PageContentAsyncResult.cs
- SystemResourceKey.cs
- WebServiceClientProxyGenerator.cs
- SecurityManager.cs
- Camera.cs
- DataServiceQueryProvider.cs
- FixedPageStructure.cs
- RelationshipEndCollection.cs
- VScrollProperties.cs
- DataGridCell.cs
- NewArrayExpression.cs
- DockEditor.cs
- ClientApiGenerator.cs