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
- CodeTypeDeclaration.cs
- XPathItem.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FixedPage.cs
- TagPrefixInfo.cs
- SecurityDescriptor.cs
- XmlDocumentFragment.cs
- EmptyControlCollection.cs
- AutomationPattern.cs
- GroupBox.cs
- ConditionValidator.cs
- FontUnitConverter.cs
- RequestCachingSection.cs
- ConnectionOrientedTransportChannelFactory.cs
- SyndicationSerializer.cs
- Rotation3D.cs
- SecurityContext.cs
- RewritingValidator.cs
- HttpCookiesSection.cs
- _ScatterGatherBuffers.cs
- OracleBFile.cs
- TreeNodeBinding.cs
- XmlSerializerAssemblyAttribute.cs
- InternalSafeNativeMethods.cs
- SqlAggregateChecker.cs
- GB18030Encoding.cs
- AccessorTable.cs
- IsolatedStorageFilePermission.cs
- WebPartEditVerb.cs
- WebPartEditorOkVerb.cs
- TemplatedMailWebEventProvider.cs
- UriTemplateTable.cs
- TextEditorMouse.cs
- SafeUserTokenHandle.cs
- METAHEADER.cs
- EntityContainerEntitySetDefiningQuery.cs
- SHA256Managed.cs
- DateTimeFormatInfoScanner.cs
- VSDExceptions.cs
- Pair.cs
- FullTextLine.cs
- StringUtil.cs
- OperationValidationEventArgs.cs
- WorkflowMarkupSerializerMapping.cs
- ContextActivityUtils.cs
- DataGridTextBox.cs
- SqlParameterizer.cs
- PointHitTestResult.cs
- TrackingValidationObjectDictionary.cs
- ImageDrawing.cs
- MouseGestureConverter.cs
- CompilerWrapper.cs
- RequestCachePolicy.cs
- ImageSource.cs
- CommonRemoteMemoryBlock.cs
- DebugInfoExpression.cs
- MenuItemBindingCollection.cs
- TextFormatterHost.cs
- VarInfo.cs
- OleDbConnectionFactory.cs
- ICspAsymmetricAlgorithm.cs
- SqlRetyper.cs
- RotateTransform.cs
- ChtmlImageAdapter.cs
- FormConverter.cs
- DataExchangeServiceBinder.cs
- DynamicObject.cs
- FloatAverageAggregationOperator.cs
- XmlAnyAttributeAttribute.cs
- WaitForChangedResult.cs
- NavigationPropertyEmitter.cs
- LogArchiveSnapshot.cs
- LinkConverter.cs
- XmlILIndex.cs
- PropertyEntry.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XmlFileEditor.cs
- GridViewDeleteEventArgs.cs
- SmtpNetworkElement.cs
- __Filters.cs
- XmlSchemaDocumentation.cs
- Path.cs
- ForeignConstraint.cs
- AtomContentProperty.cs
- BooleanAnimationUsingKeyFrames.cs
- JavaScriptString.cs
- DefaultProfileManager.cs
- BaseAddressElement.cs
- WebServiceParameterData.cs
- XamlSerializer.cs
- SrgsGrammar.cs
- CorePropertiesFilter.cs
- ControlDesigner.cs
- TreeWalkHelper.cs
- ContextStaticAttribute.cs
- NamespaceInfo.cs
- SingleObjectCollection.cs
- ClientApiGenerator.cs
- Form.cs
- XmlHierarchicalDataSourceView.cs