Share via


Entry 类

定义

Microsoft.Maui.Controls 在 iOS 平台上创建的入口实例。

public ref class Entry abstract sealed
public static class Entry
type Entry = class
Public Module Entry
继承
Entry

注解

开发人员可以使用此特定于平台的实例来控制是否调整入口实例中的文本大小以适应可用宽度。 如果启用字号调整,控件将在用户输入文本时逐渐将字号缩小到最小值。

字段

AdjustsFontSizeToFitWidthProperty

AdjustsFontSizeToFitWidth(IPlatformElementConfiguration<iOS,Entry>)可绑定属性。

CursorColorProperty

附加属性 的可绑定属性 CursorColor

方法

AdjustsFontSizeToFitWidth(IPlatformElementConfiguration<iOS,Entry>)

返回一个布尔值,指示输入控件是否自动调整字号。

DisableAdjustsFontSizeToFitWidth(IPlatformElementConfiguration<iOS,Entry>)

禁用对特定于平台的元素的字号自动调整。

EnableAdjustsFontSizeToFitWidth(IPlatformElementConfiguration<iOS,Entry>)

启用对特定于平台的元素的字号自动调整。

GetAdjustsFontSizeToFitWidth(BindableObject)

返回一个布尔值,该值指示输入控件是否自动调整用户输入文本的字号。

GetCursorColor(BindableObject)

获取游标的颜色。

GetCursorColor(IPlatformElementConfiguration<iOS,Entry>)

获取游标的颜色。

SetAdjustsFontSizeToFitWidth(BindableObject, Boolean)

设置一个布尔值,该值指示输入控件是否自动调整用户输入文本的字号。

SetAdjustsFontSizeToFitWidth(IPlatformElementConfiguration<iOS,Entry>, Boolean)

设置一个布尔值,该值指示是否对元素启用字号自动调整。

SetCursorColor(BindableObject, Color)

设置游标的颜色。

SetCursorColor(IPlatformElementConfiguration<iOS,Entry>, Color)

设置游标的颜色,并返回 fluent 对象。

适用于