Share via


LocalizedNameAttribute Class

Definition

Provides the localized name of an extension.

public ref class LocalizedNameAttribute : Attribute
public class LocalizedNameAttribute : Attribute
type LocalizedNameAttribute = class
    inherit Attribute
Public Class LocalizedNameAttribute
Inherits Attribute
Inheritance
LocalizedNameAttribute

Examples

The following code snippet shows the LocalizedNameAttribute being set on an extension class:

[C#]

namespace PolygonsCRI

{

[LocalizedName("Polygons")]

[Editor(typeof(CustomEditor), typeof(ComponentEditor))]

[ToolboxBitmap(typeof(PolygonsDesigner),"Polygons.ico")]

// this CRI-specific attribute sets the name of the

// custom report item which is referenced by the config

// files and saved in the report definition language

[CustomReportItem("Polygons")]

// the main class for our CRI design-time component

public class PolygonsDesigner : CustomReportItemDesigner

{

...

}

Remarks

The LocalizedNameAttribute class allows the caller to determine the localized name of the extension without loading the extension.

Note To give the extension a name which is dependent on the user's language, you must override the GetLocalizedString method.

Constructors

LocalizedNameAttribute()

Initializes a new instance of the LocalizedNameAttribute class.

LocalizedNameAttribute(String)

Initializes a new instance of the LocalizedNameAttribute class.

Properties

Name

Gets the localized name of the extension.

Methods

Equals(Object)

Determines if the object supplied is the same as the current object.

GetHashCode()

Returns a unique hash code for the object.

GetLocalizedString(String)

Returns the correct localized extension name.

Applies to