当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CATextView(多行输入框)

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:51:44

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-08-29 类说明CATextView是多行输入框,其主要用法和CATextField相似。CATextView 属性 (点击属性名可查看属性介绍)属性说明TextFontSizeTextView的字体大小TextTextView的文本内容TextColorTextView的文字颜色DelegateTextView绑定DelegateTextViewAlignTextView的文本对齐方式ReturnTypeTextView的确认键类型CATextView 方法 (点击方法名可查看方法介绍)方法说明setBackGroundImage背景图像resignFirstResponder隐藏键盘第一响应者状态becomeFirstResponder弹出键盘第一响应者状态createWithFrame创建一个CATextView,并指定其FramecreateWithCenter创建一个CATextView,并指定其CenterCATextView 属性介绍            TextFontSize类型:int解释:设置TextView的字体大小。set/get{}。Text类型:std::string解释:设置TextView的文本内容。set/get{}。TextColor类型:CAColor4B解释:设置TextView的文字颜色。set/get{}。Delegate类型:CATextViewDelegate*解释:TextView绑定Delegate。set/get{}。TextViewAlign类型:TextViewAlign解释:TextView的文本对齐方式。set/get{}。ReturnType类型:ReturnType解释:TextView的确认键类型。set/get{}。CATextView 方法介绍    void setBackGroundImage(CAImage* image);返回值:void参数:类型参数名说明CAImage* image图像解释:设置输入框背景图片virtual bool resignFirstResponder();返回值:bool参数:解释:隐藏键盘第一响应者状态virtual bool becomeFirstResponder();返回值:bool参数:解释:弹出键盘第一响应者状态static CATextView* createWithFrame(const DRect& rect);返回值:CATextView*参数:类型参数名说明const DRect&rect区域大小解释:创建,并指定其Framestatic CATextView* createWithCenter(const DRect& rect);返回值:CATextView*参数:类型参数名说明const DRect&rect中心点的位置及大小解释:创建,并指定其Center

CATextView(多行输入框)