BaseProperty 类

定义

表示 Rule 属性。Represents a Rule property.

public ref class BaseProperty abstract : System::ComponentModel::ISupportInitialize
[System.Windows.Markup.ContentProperty("Arguments")]
public abstract class BaseProperty : System.ComponentModel.ISupportInitialize
type BaseProperty = class
    interface ISupportInitialize
Public MustInherit Class BaseProperty
Implements ISupportInitialize
继承
BaseProperty
派生
属性
实现

注解

这表示Rule属性的架构信息 (名称、允许的值等)。This represents the schema information (name, allowed values, and so on) of a Rule property. 由于这只是架构信息, 因此没有任何字段 (如 "Value") 可用于获取/设置此属性的值。Because this is just schema information, there is no field such as "Value" to get/set the value of this property. 如果手动实例化此类, 请BeginInit在设置对象的第一个属性之前和EndInit设置最后一个属性后调用。If you manually instantiate this class, call BeginInit before you set the first property of the object and EndInit after you set the last property.

构造函数

BaseProperty()

无参数构造函数。Parameterless constructor. 这是从持久格式进行反序列化所必需的。Required for deserialization from a persisted format.

属性

Arguments

获取或设置此属性的参数列表。Gets or sets a list of arguments for this property.

Category

获取或设置此属性所属的类别的名称。Gets or sets the name of the category to which this property belongs.

ContainingRule

获取或设置包含此 RuleBasePropertyGets or sets the Rule that contains this BaseProperty.

DataSource

获取或设置存储此属性的当前值的数据源。Gets or sets the data source where the current value of this property is stored.

Default

获取或设置此属性的默认值。Gets or sets the default value for this property.

Description

获取或设置供预期的 UI 客户端使用的此 BaseProperty 的说明。Gets or sets a description of this BaseProperty for use by a prospective UI client.

DisplayName

获取或设置可由预期 UI 客户端用来显示此 BaseProperty 的名称。Gets or sets a name that can be used by a prospective UI client to display this BaseProperty.

F1Keyword

获取或设置用于打开此属性帮助页的关键字。Gets or sets the keyword that is used to open the help page for this property.

HelpContext

获取或设置当用户按 F1 时要使用的帮助上下文。Gets or sets the Help context to use when the user presses F1.

HelpFile

获取或设置当用户按 F1 时要使用的帮助文件。Gets or sets the Help file to use when the user presses F1.

HelpUrl

获取或设置此属性的帮助页的 URL。Gets or sets the URL of the Help page for this property. 当用户按 F1 时将打开该帮助页。The page is opened when the user presses F1.

IncludeInCommandLine

获取或设置对命令行构造函数的提示,该提示告知是否在命令行中包含此属性。Gets or sets a hint to the command-line constructor whether to include this property in the command line.

IsRequired

获取或设置一个值,此值指示是否需要为此属性设置一个值。Gets or sets a value that indicates whether this property is required to have a value set.

Metadata

获取或设置此 BaseProperty 的附加特性。Gets or sets additional attributes of this BaseProperty.

MultipleValuesAllowed

获取或设置一个值,此值指示此属性是否允许同时提供/选择多个值。Gets or sets a value that indicates whether this property allows multiple values to be supplied/selected simultaneously.

Name

获取或设置此 BaseProperty 的名称。Gets or sets the name of this BaseProperty.

ReadOnly

获取或设置一个值,此值指示此属性是否为只读。Gets or sets a value that indicates whether this property is read-only.

Separator

获取或设置用于将一个开关与开关值分隔的标记。Gets or sets the token used to separate a switch from its value.

Subcategory

获取或设置此属性所属的子类别。Gets or sets the subcategory this property belongs to.

Switch

获取或设置此属性在表示一个工具参数时的开关表示形式。Gets or sets the switch representation of this property when the property represents a tool parameter.

SwitchPrefix

获取或设置此属性在表示一个工具参数时的开关表示形式的前缀。Gets or sets the prefix for the switch representation of this property when this property represents a tool parameter.

ValueEditors

获取或设置此属性的值编辑器的列表。Gets or sets the list of value editors for this property.

Visible

获取或设置对 UI 客户端的提示,该提示告知是否显示此属性。Gets or sets a hint to the UI client that tells it whether to display this property.

方法

BeginInit()

请参阅 BeginInit()See BeginInit().

EndInit()

请参阅 EndInit()See EndInit().

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于