GUIKit`
GUIKit`

PropertyValue

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

PropertyValue[name]

gets a widget property value.

PropertyValue[{target,name}]

gets a widget property value, specifying the target widget.

PropertyValue[{target,name,index}]

gets an indexed widget property value, specifying the target widget.

更多信息和选项

  • To use PropertyValue, you first need to load GUIKit using Needs["GUIKit`"].
  • PropertyValue returns the value of the property name.
  • If the target argument is not present, the target is defaulted to the wrapping widget of the PropertyValue expression.
  • The target can either be specified as a string name of a widget reference or a component instance    such as a JavaObject.
  • Note that indices in the Wolfram Language and XML widget definitions are 1-based, while Java and direct calls to Java objects using J/Link follow the 0-based Java convention.
  • The following option can be given:
  • NameNonea name with which to register this returned value within the widget registry

范例

基本范例  (1)

Run an interface definition:

Get the value of the "text" property of the "SumField" widget reference:

Wolfram Research (2007),PropertyValue,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

文本

Wolfram Research (2007),PropertyValue,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

CMS

Wolfram 语言. 2007. "PropertyValue." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html.

APA

Wolfram 语言. (2007). PropertyValue. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html 年

BibTeX

@misc{reference.wolfram_2024_propertyvalue, author="Wolfram Research", title="{PropertyValue}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_propertyvalue, organization={Wolfram Research}, title={PropertyValue}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/PropertyValue.html}, note=[Accessed: 22-November-2024 ]}