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
- XmlSchemaRedefine.cs
- AutomationTextAttribute.cs
- CaseStatementSlot.cs
- BitArray.cs
- IImplicitResourceProvider.cs
- EditorResources.cs
- XsltInput.cs
- InputReport.cs
- InvalidWMPVersionException.cs
- CngAlgorithmGroup.cs
- EncryptRequest.cs
- path.cs
- ToggleButtonAutomationPeer.cs
- DeviceContexts.cs
- Point4D.cs
- CreateUserWizard.cs
- GC.cs
- StrongName.cs
- Literal.cs
- SecurityElement.cs
- ParentQuery.cs
- DataTableTypeConverter.cs
- DesignerEventService.cs
- AdornerLayer.cs
- cryptoapiTransform.cs
- ForEachAction.cs
- OLEDB_Util.cs
- FileChangesMonitor.cs
- DiscoveryClientDocuments.cs
- Help.cs
- ListDictionaryInternal.cs
- UnionCodeGroup.cs
- ContentValidator.cs
- ProtocolElement.cs
- TrustLevel.cs
- TextRenderer.cs
- WebServiceErrorEvent.cs
- SuppressIldasmAttribute.cs
- ListBoxDesigner.cs
- CategoryAttribute.cs
- UnsafeNativeMethods.cs
- PageVisual.cs
- Size.cs
- RegexWorker.cs
- SchemaNames.cs
- TaskCanceledException.cs
- HandlerBase.cs
- MachineKeyConverter.cs
- MimeParameterWriter.cs
- DataServiceOperationContext.cs
- QilReplaceVisitor.cs
- PerfCounters.cs
- IPEndPoint.cs
- QueryableFilterUserControl.cs
- WindowsListViewItemCheckBox.cs
- Tracer.cs
- MethodMessage.cs
- WorkflowRuntimeServicesBehavior.cs
- AutoGeneratedField.cs
- MaxSessionCountExceededException.cs
- LicenseException.cs
- TransactionsSectionGroup.cs
- XmlCharCheckingReader.cs
- TextServicesManager.cs
- StrongNameKeyPair.cs
- DataControlFieldHeaderCell.cs
- WrapPanel.cs
- CommentEmitter.cs
- ProcessHostConfigUtils.cs
- WmlMobileTextWriter.cs
- Message.cs
- IconBitmapDecoder.cs
- AutoGeneratedFieldProperties.cs
- WebPartConnectionsConnectVerb.cs
- DLinqColumnProvider.cs
- XmlSchemaType.cs
- ItemsControl.cs
- GridViewHeaderRowPresenter.cs
- CodeParameterDeclarationExpression.cs
- MetaForeignKeyColumn.cs
- SmiEventSink_Default.cs
- RawStylusInputCustomDataList.cs
- MasterPage.cs
- TransportSecurityHelpers.cs
- XmlSchemaObject.cs
- ImportContext.cs
- LongAverageAggregationOperator.cs
- MasterPageCodeDomTreeGenerator.cs
- TaskFileService.cs
- DbReferenceCollection.cs
- EmptyStringExpandableObjectConverter.cs
- SoapHeaders.cs
- TextureBrush.cs
- StronglyTypedResourceBuilder.cs
- WebPartDisplayModeCancelEventArgs.cs
- CdpEqualityComparer.cs
- PermissionToken.cs
- DynamicPropertyReader.cs
- AppDomainGrammarProxy.cs
- HtmlForm.cs