共用方式為


UIScrollView.ContentSize 屬性

定義

內容檢視的大小,以點為單位。

public virtual CoreGraphics.CGSize ContentSize { [Foundation.Export("contentSize")] get; [Foundation.Export("setContentSize:")] set; }
member this.ContentSize : CoreGraphics.CGSize with get, set

屬性值

屬性

備註

屬性 ContentSize 會指定 的可捲動區域總計、可見或不 UIScrollView 可見。 應用程式開發人員必須將 屬性設定 ContentSize 為大於 UIScrollView 的值 Frame ,才能取得預期的捲動行為。 ContentSize通常是 子檢視之 的 UIScrollView 聯集 Frame ,但這不一定是有時 (的情況,藉由 Frame 捲動) 部分無法連線的 ,即可更輕鬆地或更一致地繪製幾何。

適用於