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
- DBCommandBuilder.cs
- URLString.cs
- XmlWrappingWriter.cs
- BindMarkupExtensionSerializer.cs
- ConditionalAttribute.cs
- ControlPaint.cs
- HeaderCollection.cs
- Marshal.cs
- DisplayNameAttribute.cs
- BaseTemplateBuildProvider.cs
- HwndAppCommandInputProvider.cs
- Attributes.cs
- ParserContext.cs
- FixedPage.cs
- ReceiveMessageRecord.cs
- WorkflowInlining.cs
- BaseAppDomainProtocolHandler.cs
- ProvideValueServiceProvider.cs
- XPathSingletonIterator.cs
- ControlBuilder.cs
- Brush.cs
- SQLMoney.cs
- DataSourceCacheDurationConverter.cs
- ZoomPercentageConverter.cs
- BitmapFrameEncode.cs
- DataServiceQueryOfT.cs
- RequestNavigateEventArgs.cs
- SafeFileMappingHandle.cs
- DirectoryLocalQuery.cs
- SafeFileMappingHandle.cs
- ChannelManagerBase.cs
- CompositeDataBoundControl.cs
- RegexNode.cs
- Polyline.cs
- TabPage.cs
- BuiltInExpr.cs
- WindowsListView.cs
- CollectionAdapters.cs
- Int16AnimationBase.cs
- ProcessHost.cs
- DrawingContextDrawingContextWalker.cs
- CodeNamespaceCollection.cs
- SamlAttribute.cs
- MouseGestureValueSerializer.cs
- SuppressIldasmAttribute.cs
- AppDomain.cs
- GenericWebPart.cs
- ObjectViewFactory.cs
- FileLevelControlBuilderAttribute.cs
- Triplet.cs
- COM2PropertyPageUITypeConverter.cs
- AttributeEmitter.cs
- XmlSchemaSimpleTypeList.cs
- ConnectionManagementElement.cs
- TextRangeProviderWrapper.cs
- BoundColumn.cs
- MetaModel.cs
- DynamicVirtualDiscoSearcher.cs
- PkcsUtils.cs
- RegexCompilationInfo.cs
- ProvideValueServiceProvider.cs
- BrowserCapabilitiesCodeGenerator.cs
- OracleMonthSpan.cs
- ResourceContainer.cs
- DataGridViewCheckBoxCell.cs
- MediaPlayer.cs
- CursorConverter.cs
- ObjectIDGenerator.cs
- AttributeProviderAttribute.cs
- LabelLiteral.cs
- SerializationEventsCache.cs
- XmlSchema.cs
- MessageLoggingFilterTraceRecord.cs
- DataBindingHandlerAttribute.cs
- OledbConnectionStringbuilder.cs
- HtmlInputRadioButton.cs
- DataTableCollection.cs
- CompatibleComparer.cs
- HttpCacheParams.cs
- VerificationAttribute.cs
- SqlSupersetValidator.cs
- DataControlLinkButton.cs
- SymLanguageType.cs
- AnnouncementEventArgs.cs
- ReadOnlyTernaryTree.cs
- SizeLimitedCache.cs
- ResourceReferenceExpressionConverter.cs
- SettingsPropertyNotFoundException.cs
- WSDualHttpSecurityMode.cs
- ScaleTransform.cs
- Shape.cs
- XmlLanguageConverter.cs
- PageOrientation.cs
- Matrix3DConverter.cs
- StsCommunicationException.cs
- CaretElement.cs
- RegexWorker.cs
- DataTrigger.cs
- HttpContextServiceHost.cs
- RowVisual.cs