TComponent::Name - C++ Builder

C++ Builder 参考手册 ➙ TComponent ➙ Name


头文件:#include
命名空间:System::Classes
类:TComponent
访问权限:__published:
属性定义:

typedef System::UnicodeString TComponentName;
__property TComponentName Name = { read = FName, write = SetName, stored=false};

System::Classes::TComponent::Name 是 System::Classes::TComponent 的属性,组件的名称。

  • 组件的名称,可读写属性;
  • 设计期间,组件的名称会关联到程序的变量名,变量名和控件名相同;
  • 运行期间修改了组件名称,会让这个组件的关联失效,程序运行异常。

参考:

  • System::Classes::TComponent::SetName
  • System::Classes::TComponent::ChangeName
  • System::Classes::TComponent::GetNamePath
  • System::Classes::TComponent::Tag
  • System::TObject::ClassName
  • System::Classes::TComponent
  • System::Classes::TPersistent
  • System::TObject
  • VCL 类继承关系

C++ Builder 参考手册 ➙ TComponent ➙ Name

你可能感兴趣的:(TComponent::Name - C++ Builder)