Share via


PersonPicture.PreferSmallImage 屬性

定義

取得或設定值,這個值表示當兩者都可用時,是否顯示小型影像,而不是大型影像。

public:
 property bool PreferSmallImage { bool get(); void set(bool value); };
bool PreferSmallImage();

void PreferSmallImage(bool value);
public bool PreferSmallImage { get; set; }
var boolean = personPicture.preferSmallImage;
personPicture.preferSmallImage = boolean;
Public Property PreferSmallImage As Boolean
<PersonPicture PreferSmallImage="bool"/>

屬性值

Boolean

bool

true 表示即使有大型影像可用,仍會顯示小型影像;否則為 false。 預設值為 false

備註

如果有可用影像,控制項會依照下列順序,顯示找到的第一個影像:

  1. LargeDisplayPicture
  2. SmallDisplayPicture
  3. 縮圖

您可以將 PreferSmallImage 屬性設定為 true,以變更所選的影像。 這可讓 SmallDisplayPicture 優先順序高於 LargeDisplayPicture。

適用於