skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class NamedDestinationsCollection

Represents a collection of named destinations that provide navigational targets within the document.

Inheritance
System.Object
NamedDestinationsCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.Collections
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public sealed class NamedDestinationsCollection : IEnumerable<NamedDestination>, IEnumerable

Constructors

NamedDestinationsCollection(IDestinationContainer)

Initializes a new instance of the NamedDestinationsCollection class.

Declaration
public NamedDestinationsCollection(IDestinationContainer parent)
Parameters
IDestinationContainer parent

The parent.

Properties

Count

Gets the number of named destinations contained in the collection.

Declaration
public int Count { get; }
Property Value
System.Int32

Item[String]

Gets the named destination associated with the specified name from the collection.

Declaration
public NamedDestination this[string name] { get; }
Parameters
System.String name

The name of the named destination to retrieve.

Property Value
NamedDestination

The named destination with the specified name.

Exceptions
System.Collections.Generic.KeyNotFoundException

Thrown when no named destination with the specified name exists in the collection.

Names

Gets a collection containing all the destination names in this collection.

Declaration
public IEnumerable<string> Names { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>

Methods

Add(String, GoToAction)

Creates and adds a new named destination with the specified name and go-to action to the collection.

Declaration
public NamedDestination Add(string name, GoToAction goToAction)
Parameters
System.String name

The unique name to assign to the named destination.

GoToAction goToAction

The go-to action that defines the navigation behavior for this named destination.

Returns
NamedDestination

The newly created named destination instance.

Exceptions
System.ArgumentNullException

Thrown when the name or goToAction parameter is null.

System.ArgumentException

Thrown when an element with the same name already exists in the collection.

Add(String, Destination)

Creates and adds a new named destination with the specified name and destination target to the collection.

Declaration
public NamedDestination Add(string name, Destination destination)
Parameters
System.String name

The unique name to assign to the named destination.

Destination destination

The destination target that defines where to navigate when this named destination is used.

Returns
NamedDestination

The newly created named destination instance.

Exceptions
System.ArgumentNullException

Thrown when the name or destination parameter is null.

System.ArgumentException

Thrown when an element with the same name already exists in the collection.

Clear()

Removes all named destination from the collection.

Declaration
public void Clear()

ContainsName(String)

Determines whether a named destination with the specified name exists in the collection.

Declaration
public bool ContainsName(string name)
Parameters
System.String name

The name to search for in the collection.

Returns
System.Boolean

True if a named destination with the specified name exists; otherwise, false.

Exceptions
System.ArgumentNullException

Thrown when the name parameter is null.

GetEnumerator()

Returns an enumerator that iterates through the collection of named destinations.

Declaration
public IEnumerator<NamedDestination> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<NamedDestination>

An enumerator for the collection.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

Remove(String)

Removes the named destination with the specified name from the collection and cleans up its parent associations.

Declaration
public bool Remove(string name)
Parameters
System.String name

The name of the named destination to remove.

Returns
System.Boolean

True if the named destination was successfully found and removed; otherwise, false.

Exceptions
System.ArgumentException

Thrown when the name parameter is null.

Rename(String, String)

Changes the name of an existing named destination in the collection.

Declaration
public void Rename(string oldName, string newName)
Parameters
System.String oldName

The current name of the named destination to rename.

System.String newName

The new name to assign to the named destination.

TryGetValue(String, out NamedDestination)

Attempts to retrieve the named destination associated with the specified name from the collection.

Declaration
public bool TryGetValue(string name, out NamedDestination value)
Parameters
System.String name

The name of the destination to retrieve.

NamedDestination value

When this method returns, contains the named destination associated with the specified name if found; otherwise, null.

Returns
System.Boolean

True if a named destination with the specified name was found; otherwise, false.

Exceptions
System.ArgumentException

Thrown when the name parameter is null.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.