我是 SharePoint 和 SPMeta2 的新手。我想给我用 SPMeta2 创建的这个 ImageField 提供 300x300 的默认大小,因为如果你让人们选择他们自己的大小,它总是太大。
public static FieldDefinition ContactPicture = new ImageFieldDefinition
{
Id = new Guid("ATD3DCAD-2A70-49AC-AFB7-BF4D2EDA5627"),
Title = "Kontaktfoto",
InternalName = "ContactPicture",
Required = false,
Hidden = false,
ShowInNewForm = true,
ShowInEditForm = true,
ShowInDisplayForm = true,
Group = GroupNames.ContentTypeGroupName,
};