PowerApps 中的大小和位置屬性Size and location properties in PowerApps

概觀Overview

設定控制項 (或控制項元素) 的大小,以及其所在畫面的相關位置。Configure how big a control (or an element of a control) is and where it is in relation to the screen it's on.

位置Position

X – 控制項左邊緣與其父容器 (沒有父容器時則為螢幕) 左邊緣之間的距離。X – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container). 對於具有多個資料行之容器中的卡片控制項,這個屬性會決定卡片出現的資料行。For a Card control in a container that has multiple columns, this property determines the column in which the card appears.

Y – 控制項上邊緣與其父容器 (沒有父容器時則為螢幕) 上邊緣之間的距離。Y – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container). 對於具有多個資料列之容器中的卡片控制項,這個屬性會決定卡片出現的資料列。For a Card control in a container that has multiple rows, this property determines the row in which the card appears.

大小Size

Height – 控制項的頂端和底部邊緣之間的距離。Height – The distance between a control's top and bottom edges.

AutoHeight – 標籤是否會自動增加其 Text 屬性的高度 (如果其 Text 屬性所含的字元數超過控制項可以顯示的字元數)。AutoHeight – Whether a label automatically increases its height if its Text property contains more characters than the control can show.

Width – 控制項左邊緣與右邊緣之間的距離。Width – The distance between a control's left and right edges.

WidthFit – 控制項是否會自動水平成長以填滿容器控制項 (例如編輯表單控制項) 中的任何空白空間。WidthFit – Whether a control automatically grows horizontally to fill any empty space of a container control such as an Edit form control. 如果多個卡片的這個屬性設定為 true,它們之間的空間會分割。If multiple cards have this property set to true, the space is divided between them. 如需詳細資訊,請參閱了解資料表單版面配置For more information, see Understand data form layout.

與邊框距離Padding

Padding – 匯入或匯出按鈕上的文字與該按鈕邊緣之間的距離。Padding – The distance between the text on an import or export button and the edges of that button.

PaddingBottom – 控制項中文字與該控制項下邊緣之間的距離。PaddingBottom – The distance between text in a control and the bottom edge of that control.

PaddingLeft – 控制項中文字與該控制項左邊緣之間的距離。PaddingLeft – The distance between text in a control and the left edge of that control.

PaddingRight – 控制項中文字與該控制項右邊緣之間的距離。PaddingRight – The distance between text in a control and the right edge of that control.

PaddingTop – 控制項中文字與該控制項上邊緣之間的距離。PaddingTop – The distance between text in a control and the top edge of that control.

RadiusRadius

RadiusBottomLeft – 控制項左下角的角度 (四捨五入)。RadiusBottomLeft – The degree to which the bottom-left corner of a control is rounded.

RadiusBottomRight – 控制項右下角的角度 (四捨五入)。RadiusBottomRight – The degree to which the bottom-right corner of a control is rounded.

RadiusTopLeft – 控制項左上角的角度 (四捨五入)。RadiusTopLeft – The degree to which the top-left corner of a control is rounded.

RadiusTopRight – 控制項右上角的角度 (四捨五入)。RadiusTopRight – The degree to which the top-right corner of a control is rounded.