Delphi的属性Property
参考:http://www.cnblogs.com/edisonfeng/archive/2012/05/22/2513727.html
一、基本属性
TOnUserInfoShow = procedure(userName: String; userAge: Integer) of object;
//定义时间模型中的回调函数 TUserInfo = class
private
FName: String;
FAge: Integer;
FOnUserInfoShow: TOnUserInfoShow;
procedure FSetAge(theAge: Integer);
public
property Name: string read FName; //只读属性
property Age: Integer read FAge write FSetAge; //读写属性(私有变量,私有方法)
property OnUserInfoShow: TOnUserInfoShow read FOnUserInfoShow write FOnUserInfoShow; //事件模型回调函数
constructor Create;
end
对于FAge、FSetAge等变量和方法,只需要在Property后声明好,直接Ctrl+Shift+C,既可以自动生成
二、只读属性
构造函数
constructor TUserInfo.Create;
begin
Self.FName:= 'Terry';
Self.FAge:= 20;
end;
读取只读属性
begin
Self.Memo1.Lines.Add('读取只读属性姓名:'+Self.theUserInfo.Name);
end;
运行
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAb8AAABLCAIAAABvBR6eAAAWkElEQVR4nO2de1QU593Hf8sWScwxTULqq9UqqKgxagBRFEQWuSnLEu6C3AaUi4ggeEHRyCg1viax1Zo0J+lFe3pO37dpUpue3nLaBtOeN6enMUeKjTGWlmXvy6II7MwsRnzeP2ZYltnZZUFk1/D7ns9ZZ5555jcze/n4zA67C8QhoPxUltomS22D5M8h+XNIuSGQroasLtiug2Ijfysr7YZiM2w3QqEZis1QOEyeBfEBbiNeJt+EeBnxK2L0aySDRw8ZFlAaIUMPGXpQGiHDAkoLKI2g1EKSDpJ0oNSC0ghKIygtkNQNse0jwuT/4aU5o9Ia0DAU2ES+eYJ88wRZfJIsO0PCXiNhr5OocyTqHIl5g8S8QWLfdAnfAfEubh4gZGrw+nMAiXF6IcS8IUjMfuuKsNfELD5JFp8kgU1kRs09iG2HsI8Fe8pS2/yKzDMqrX41fQH77wc2EbtAg0+T4NNk2Rny/NkRwl4XcGxEEATxHZadEXCc5SXIjwt5udlZfHLULC9AO7wVA5tIQN1QQN0Q5A1AdDtA3N8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83pVzVmUBop1n3eyU5gfFSHqGxp3OcddMzWpGSSgK3fhT1mfojlVTWZN6Tk2ZPeqyTZXAhAlFoF9Pj3ZabIm4qO87SHpcas5qbnu73wVUHNxMYL+VRGXt6sm+iaXBtT+c413HfbWoOx7ft6RjaaZaWGj2NuaJkKQ9XoV3geR1w2knnnaGl2j2sJtnB1axoQ6JF7stipiSPytizZ6zxILg2I7g4B5c8BFeVvYIP25N2uHdph1vniJY6r+hqFQ+35VzZ/VI3W3dfysN1xxXJOrTHB4Xxah6VsSd4/BdLY7a4uis8rzNlx+vD9rRP0A53oeM0uOgDUgaUXMvDbYkm6NEjRFdLRYBTcck+nnd4qJnKbWFc55EYe7raFowejYLbk3dw8qP7pWNufQrwVXtivBUa1elD8f2xJ3j2d52OE+CBNO33gGgV8GB8OmVHjfbEYHw3j8TYc9qC9sRgfDe+P/acngCOPTEYHw+OPX0ZtCcG47vB7/f05Vu0Jwbju8Ezd18G7YnB+G4mYE+v/4zdtOJh2TMg7AbaE4N5kIzXnl7/GbtpCKA9MRgfzHjtifFK0J4YjM9lXPZEvgKgPTGYyQnac7qB9sRgJidoz+kG2hODmZygPacbaE8MZnKC9pxuoD0xmMkJ2nO6gfbEYCYnaM/pBm/P/wdHpVCvSiLCWwAAAABJRU5ErkJggg==" alt="" />
三、读写属性
构造函数
constructor TUserInfo.Create;
begin
Self.FName:= 'Terry';
Self.FAge:= 20;
end;
修改读写属性,并读取新值
begin
Self.Memo1.Lines.Add('修改前的读写属性年龄为:'+inttostr(Self.theUserInfo.Age));
Self.theUserInfo.Age:= 30;
Self.Memo1.Lines.Add('修改后的读写属性年龄为:'+inttostr(Self.theUserInfo.Age));
end;
运行
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcAAAAB+CAIAAAA88FaVAAAb3UlEQVR4nO2dfVBU193HfwuNJmTMk4TUR6tRjKKGqAE0akBkkTcjrAEBBeVlQVFEBEHjW6wctSaPSWxNSSaTTDua6UyeJjU1pmnTTNug7Ty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Y/BdosFeKARQoBqOtDEmgFBOkcOJCgWIw2spQBdp1rQ0ZYXhxoUAxGG1lGAINyMMY8R8UKAaj0QxboACAtyNwiwLFYLSb4QkUAvRgRnx+zTtRoBiMZqP9p/AgEYe0pdPXhwR89hnqdCMJChSD0WhGxQ4UlA0o7aM0dqh9pAcjD+AOFIPRcrS/A1XSimyL9JKom1JUSsHgVyRHnjslUPxlIhjMbWZU7ED5BcjGZx/hVVFnpSl8lhqxu9x5JwSa9B1MQYFiMLcd7e9AuXWKnAIKW07wtQPtVDWj6NifmiMAChSD0WhGxQ4UJM+mZRfgc1WgIF9QFvTI31npglGgGIxGo/0daKcvwQkvyUY61mcfn91GEhQoBqPRjKIdqNJd8Ges9FjpXkgbR/jOSqdGgWIwGs2o24HKtijdu06F3atSZ3/mGnlQoBiMRjNadqDg37N42bE+D5QalVpG8o53okAxGM1mdO1AuTVL22WHKHWGwftQUVnwY5c6wqBAMRiNZlTsQEMWwB0oBqPljIodaIiDAsVgNBrcgWoZwB0oBqPl4O8D1fjtHRQo/jIRDOY2g0/htc8dEGgLPHwCBYrB3G6GKtCTv34dGXlQoBiMFjMkgdbXbUCCBaBAMRitZUgCxQQ3KFAMRlvxX6DI9wMUKAYTsKBAQw0UKAYTsKBAQw0UKAYTsKBAQw0UKAYTsKBAQw0UKAYTsKBAQw0UKAYTsKBAQw1eoP8PIhQhzwHh56sAAAAASUVORK5CYII=" alt="" />
四、事件回调函数
主窗口成员函数
procedure TFrmMain.UserInfoShow(name: string; age: Integer);
begin
Self.Memo1.Lines.Add('用户姓名为:'+Self.theUserInfo.Name);
Self.Memo1.Lines.Add('用户年龄为:'+inttostr(Self.theUserInfo.Age));
end;
主窗体创建时,将函数指针赋值给“时间回调函数”
procedure TFrmMain.FormCreate(Sender: TObject);
begin
Self.Memo1.Color:= clBlack;
Slef.Memo1.Font.Color:= clGreen;
Self.theUserInfo.OnUserInfoShow:= Self.USerInfoShow;
end;
调用事件回调函数
begin
Self.theUserInfo.OnUserIn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V5n0MvQDtfYG+pCRgHQHfxMvZEl3I0CYHzwi/KMLzIKgKHB3aiRJdyNAmB88PtGDf4WGQXA6OBJvfFFRgEwNCPN6LlfvgYnXmQUAOMyoozW1e6C4ZKQUQCMyYgyCsILMgqAEQk9o/DWEBkFQGeQ0UgTGQVAZ5DRSDMwo/8PzvujvNT4ttIAAAAASUVORK5CYII=" alt="" />
Delphi的属性Property的更多相关文章
- Delphi default属性
Delphi default属性 Delphi控件指定属性的时候可以加上Default关键字,例如property Color default clBtnface.一直以为这个是构造类的时候的默认值, ...
- 区分元素特性attribute和对象属性property
× 目录 [1]定义 [2]共有 [3]例外[4]特殊[5]自定义[6]混淆[7]总结 前面的话 其实attribute和property两个单词,翻译出来都是属性,但是<javascript高 ...
- 属性(@property)、@synthesize
先前我们学的实例变量是这样的 { int _age; int _height; int age; } 后来学属性 @property int age; 看到@property 会自动编译生成某个成员变 ...
- Object的属性property详细解释(自动生成成员变量)
类Class中的属性property: 在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个新的机制,并且要求你必须声明与之对应的实例变量,例如: @interfac ...
- OC 实例变量(instance var)与属性(@property)的关系 isa指针
实例变量(instance var)与属性(@property)的关系 Objective-C 2.0之后,声明一个@property name自动产生一个实例变量,名为_name,因此省去实例变量和 ...
- iOS中属性Property的常用关键字的使用说明
属性关键字的作用 现在我们iOS开发中,基本都是使用ARC(自动引用计数)技术,来编写我们的代码.因此在属性property中我们经常使用的关键字有strong,weak,assign,copy,no ...
- Effective C# 学习笔记(原则一:始终能的使用属性(property),而不是可直接访问的Data Member)
原则一:始终能的使用属性(property),而不是可直接访问的Data Member Always use properties instead of accessible data memb ...
- 使用SetWindowPos API函数移动窗口后,还需修改Delphi的属性值,以备下次使用,否则就会出问题(不是API不起作用,而是使用了错误的坐标值)
单独改变坐标的代码如下,可不断左移: procedure TForm1.Button1Click(Sender: TObject); begin SetWindowPos(panel1.Handle, ...
- Delphi 常用属性说明(超长)
Delphi组件的常用事件Onclick——当单击时触发这个事件中的代码Onchange——当改变该组件内容时触发其中的代码Oncreate——当创建时触发这个事件中的代码Onclose——当关闭的时 ...
随机推荐
- mapReduce编程之google pageRank
1 pagerank算法介绍 1.1 pagerank的假设 数量假设:每个网页都会给它的链接网页投票,假设这个网页有n个链接,则该网页给每个链接平分投1/n票. 质量假设:一个网页的pagerank ...
- 网页嵌入swf代码
<object class id="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://dow ...
- 细化如何安装LNMP + Zabbix 监控安装文档以及故障排除
1.LNMP所需安装包: 上传如下软件包到/soft目录中 mysql- (centos6. 64位自带)也可根据版本自行挑选,前提你了解这个版本 pcre-8.36.tar.gz nginx-.ta ...
- java对txt文件内容追加
package com.test; import java.io.FileOutputStream; /** * 对txt文件在文本追加内容 * @author Wdnncey * */ public ...
- 10. JEB1.5 插件编写二
一些实例 1. 遍历当前光标处函数所有的Element Java代码: import java.io.*; import java.util.List; import jeb.api.IScript; ...
- 【转】Oracle当中扫描数据的方法
本文将对oracle当中扫描数据的存取方法进行介绍. 1) 全表扫描(Full Table Scans, FTS) 为实现全表扫描,Oracle读取表中所有的行,并检查每一行是否满足语句的WHERE限 ...
- 蓝牙模块连接后出现ANR,日志记录
11-25 16:29:48.433 14507-14561/myapplication.com.myblue W/MALI: glDrawArrays:714: [MALI] glDrawArray ...
- 【云计算】Cloudify-基于TOSCA规范的开源云应用编排系统
.cloudify-manager-blueprints:https://github.com/cloudify-cosmo/cloudify-manager-blueprints/tree/3. ...
- 字符串、字符、字节以及bit位小结与疑问
字符串是由一个个字符组成的,每个字符又有一个或多个字节来表示,每个字节又由8个bit位来表示 在C#里 字符串通常由string来声明,字符由char来声明,字节由byte来表示,位由bit来表示,具 ...
- HTML精确定位:scrollLeft,scrollWidth,clientWidth,offsetWidth之完全详解
HTML:scrollLeft,scrollWidth,clientWidth,offsetWidth到底指的哪到哪的距离之完全详解 scrollHeight: 获取对象的滚动高度. scrollLe ...