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
- SecureUICommand.cs
- XPathNodePointer.cs
- ISFClipboardData.cs
- Stylesheet.cs
- RoleService.cs
- TextEditorSpelling.cs
- ExtendedPropertyCollection.cs
- ThemeDictionaryExtension.cs
- MasterPageCodeDomTreeGenerator.cs
- MenuRendererStandards.cs
- GraphicsPathIterator.cs
- PreservationFileReader.cs
- SqlConnectionPoolProviderInfo.cs
- EditorReuseAttribute.cs
- X509SecurityTokenProvider.cs
- ValueUtilsSmi.cs
- IERequestCache.cs
- ApplyImportsAction.cs
- VisualProxy.cs
- NamedPipeConnectionPool.cs
- BindingNavigator.cs
- GACIdentityPermission.cs
- ThrowHelper.cs
- DeobfuscatingStream.cs
- __ConsoleStream.cs
- MissingManifestResourceException.cs
- InstanceLockException.cs
- BlobPersonalizationState.cs
- ExecutionEngineException.cs
- XmlArrayItemAttributes.cs
- Bind.cs
- DataSourceView.cs
- D3DImage.cs
- SinglePageViewer.cs
- HttpClientChannel.cs
- DataGridViewRowHeaderCell.cs
- NamedPermissionSet.cs
- StringUtil.cs
- ColumnPropertiesGroup.cs
- UriExt.cs
- RepeatBehaviorConverter.cs
- Tuple.cs
- RepeaterItem.cs
- TableAdapterManagerGenerator.cs
- XsltContext.cs
- SettingsBase.cs
- ServicesUtilities.cs
- shaperfactoryquerycacheentry.cs
- ApplicationHost.cs
- SqlBuffer.cs
- TextMetrics.cs
- RectAnimation.cs
- SolidColorBrush.cs
- InternalCache.cs
- WindowsSpinner.cs
- ConnectionStringEditor.cs
- Util.cs
- StringReader.cs
- XmlSchemaSequence.cs
- SafeFileMapViewHandle.cs
- CompositeFontParser.cs
- WindowsGrip.cs
- XmlReflectionMember.cs
- Activator.cs
- TypeExtension.cs
- TypeBuilderInstantiation.cs
- AdornerPresentationContext.cs
- NumericUpDownAcceleration.cs
- ContextMenuStripActionList.cs
- Matrix.cs
- EntityDataSourceColumn.cs
- SqlVersion.cs
- OdbcConnectionPoolProviderInfo.cs
- WebServiceTypeData.cs
- InkCanvasInnerCanvas.cs
- GenerateScriptTypeAttribute.cs
- CalendarDay.cs
- ScrollData.cs
- DbConnectionStringBuilder.cs
- ConnectionPoolManager.cs
- SizeF.cs
- _NativeSSPI.cs
- ToggleProviderWrapper.cs
- StreamWithDictionary.cs
- InnerItemCollectionView.cs
- PointConverter.cs
- HttpWebResponse.cs
- WindowsContainer.cs
- ToolStripItemClickedEventArgs.cs
- FontCacheLogic.cs
- PaginationProgressEventArgs.cs
- TextTreeInsertElementUndoUnit.cs
- StorageModelBuildProvider.cs
- DNS.cs
- ProcessInfo.cs
- PropertyTabChangedEvent.cs
- SendActivity.cs
- ToolStripManager.cs
- XmlSchemaFacet.cs
- HttpStreamFormatter.cs