Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1305600 / 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
- TransformConverter.cs
- XmlDictionaryReaderQuotas.cs
- EllipticalNodeOperations.cs
- VarInfo.cs
- EdmConstants.cs
- DataListComponentEditor.cs
- MatrixCamera.cs
- PointF.cs
- LambdaCompiler.Logical.cs
- Int64Animation.cs
- DataObjectFieldAttribute.cs
- SqlErrorCollection.cs
- _NetRes.cs
- ElementProxy.cs
- TargetControlTypeCache.cs
- PluggableProtocol.cs
- ReferenceCountedObject.cs
- Rule.cs
- NotificationContext.cs
- HashMembershipCondition.cs
- ComponentResourceKeyConverter.cs
- VerticalAlignConverter.cs
- TaiwanLunisolarCalendar.cs
- AsyncResult.cs
- SelectionProcessor.cs
- TokenDescriptor.cs
- GridPattern.cs
- SmtpCommands.cs
- DefinitionUpdate.cs
- DesignSurface.cs
- DataGridViewIntLinkedList.cs
- ImageCodecInfo.cs
- StringSource.cs
- ObservableDictionary.cs
- DataGridViewTopRowAccessibleObject.cs
- TreeNodeEventArgs.cs
- DebugView.cs
- ParameterReplacerVisitor.cs
- EditorPartChrome.cs
- VisualProxy.cs
- ColorPalette.cs
- EdgeProfileValidation.cs
- BindingGroup.cs
- PersonalizationStateInfoCollection.cs
- BlockExpression.cs
- ThousandthOfEmRealDoubles.cs
- ImageClickEventArgs.cs
- CodeSubDirectoriesCollection.cs
- NetworkStream.cs
- SelectionList.cs
- IsolatedStorageFile.cs
- FixedPosition.cs
- TextRenderer.cs
- DictionaryEntry.cs
- MissingMemberException.cs
- SearchForVirtualItemEventArgs.cs
- ErrorHandlerModule.cs
- DrawListViewSubItemEventArgs.cs
- DataGridToolTip.cs
- GrammarBuilderDictation.cs
- AbsoluteQuery.cs
- XAMLParseException.cs
- TemplateBuilder.cs
- Matrix3D.cs
- DesignerActionService.cs
- XD.cs
- GenerateTemporaryTargetAssembly.cs
- MimeParameters.cs
- GridViewColumn.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CollectionContainer.cs
- WebEvents.cs
- TextCompositionManager.cs
- ValidationResult.cs
- HwndKeyboardInputProvider.cs
- ProcessProtocolHandler.cs
- TreeWalker.cs
- SerializationSectionGroup.cs
- OracleCommand.cs
- BaseCollection.cs
- WebServiceMethodData.cs
- MethodBody.cs
- TextRenderer.cs
- SqlDataSourceParameterParser.cs
- StructuredType.cs
- WindowsNonControl.cs
- MultiTargetingUtil.cs
- DbModificationCommandTree.cs
- XmlSchemaAppInfo.cs
- EventDescriptorCollection.cs
- ValidationHelpers.cs
- DesignerActionHeaderItem.cs
- OdbcReferenceCollection.cs
- ConnectionsZone.cs
- RenderCapability.cs
- WindowsListViewItem.cs
- Propagator.JoinPropagator.cs
- Matrix.cs
- ThaiBuddhistCalendar.cs
- LicenseManager.cs