Name

LocalizableAttribute

Synopsis

This attribute adorns properties to specify how their values should be serialized by the designer. If the class is unadorned, or marked with an attribute for which IsLocalizable is false, the designer will attempt to serialize the value in code. If IsLocalizable is true, it will serialize to a resource file and inject code to retrieve the value from there instead.


public sealed class LocalizableAttribute : Attribute {

// Public Constructors

   public LocalizableAttribute(bool isLocalizable);

// Public Static Fields

   public static readonly LocalizableAttribute Default;  // =System.ComponentModel.LocalizableAttribute

   public static readonly LocalizableAttribute No;  // =System.ComponentModel.LocalizableAttribute

   public static readonly LocalizableAttribute Yes;  // =System.ComponentModel.LocalizableAttribute

                  // Public Instance Properties

   public bool IsLocalizable{get; }

// Public Instance Methods

   public override bool Equals(object obj);  // overrides Attribute

   public override int GetHashCode();  // overrides Attribute

   public override bool IsDefaultAttribute();  // overrides Attribute

}

Hierarchy

System.Object System.Attribute LocalizableAttribute

Valid On

All

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.