Skip to content

uwidgets.core.models.attributes.localeattribute

GitHub Action edited this page Aug 13, 2024 · 2 revisions

LocaleAttribute

Namespace: uWidgets.Core.Models.Attributes

Attribute to mark an assembly's locale.

Use it in your AssemblyInfo.

public class LocaleAttribute : System.Attribute

Inheritance ObjectAttributeLocaleAttribute
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute

Properties

LocaleType

Type of auto-generated Locale.Designer.cs class.

public Type LocaleType { get; }

Property Value

Type

DisplayName

Resource key of your assembly's display name.

public string DisplayName { get; }

Property Value

String

IconData

Icon data of your assembly.

public string IconData { get; }

Property Value

String

TypeId

public object TypeId { get; }

Property Value

Object

Constructors

LocaleAttribute(Type, String, String)

Attribute to mark an assembly's locale.

Use it in your AssemblyInfo.

public LocaleAttribute(Type localeType, string displayName, string iconData)

Parameters

localeType Type
Type of auto-generated Locale.Designer.cs class

displayName String
Resource key of your assembly's display name

iconData String

Clone this wiki locally