Show / Hide Table of Contents

Class FastNameCreator

The helper class used to create unique component names using the fastest method.

Inheritance
System.Object
FastNameCreator
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: FastReport.Utils
Assembly: FastReport.OpenSource.dll
Syntax
public class FastNameCreator
Remarks

Note: you can create unique component's name using its CreateUniqueName method. However, it is very slow and can't be used in some situations (when you create a report layout in a code and have a lot of objects on a page).

Examples

This example demonstrates how to use this class.

FastNameCreator nameCreator = new FastNameCreator(Report.AllObjects);
foreach (Base c in Report.AllObjects)
{
  if (c.Name == "")
    nameCreator.CreateUniqueName(c);
}

Constructors

FastNameCreator(ObjectCollection)

Initializes a new instance of the FastNameCreator class with collection of existing report objects.

Declaration
public FastNameCreator(ObjectCollection objects)
Parameters
Type Name Description
ObjectCollection objects

The collection of existing report objects.

Methods

CreateUniqueName(Base)

Creates the unique name for the given object.

Declaration
public void CreateUniqueName(Base obj)
Parameters
Type Name Description
Base obj

The object to create name for.

Back to top Generated by DocFX