VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
Vintasoft.Imaging.Wpf.UI Namespace / WpfThumbnailViewer Class / ThumbnailCaption Property
Синтаксис Exceptions Example Требования Смотрите также
В этом разделе
ThumbnailCaption Свойство (WpfThumbnailViewer)
В этом разделе
Возвращает или устанавливает заголовок миниатюры.
Синтаксис
'Declaration

<CategoryAttribute("VintaSoft")>
<DescriptionAttribute("Caption of a thumbnail.")>
<TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter)>
Public Property ThumbnailCaption As ThumbnailImageItemCaption

[Category("VintaSoft")]
[Description("Caption of a thumbnail.")]
[TypeConverter(System.ComponentModel.ExpandableObjectConverter)]
public ThumbnailImageItemCaption ThumbnailCaption { get; set; }

Исключения
ИсключениеОписание
Выбрасывается, если value равно null.
Пример

Вот C#/VB.NET код, который демонстрирует, как задать заголовок миниатюры:


''' <summary>
''' Sets the custom thumbnail caption.
''' </summary>
''' <param name="thumbnailViewer">The thumbnail viewer.</param>
Public Shared Sub SetThumbnailCaption(thumbnailViewer As Vintasoft.Imaging.Wpf.UI.WpfThumbnailViewer)
    thumbnailViewer.ThumbnailCaption.CaptionFormat = "File {Filename}, page {PageNumber}"
    thumbnailViewer.ThumbnailCaption.IsVisible = True
End Sub


/// <summary>
/// Sets the custom thumbnail caption.
/// </summary>
/// <param name="thumbnailViewer">The thumbnail viewer.</param>
public static void SetThumbnailCaption(Vintasoft.Imaging.Wpf.UI.WpfThumbnailViewer thumbnailViewer)
{
    thumbnailViewer.ThumbnailCaption.CaptionFormat = "File {Filename}, page {PageNumber}";
    thumbnailViewer.ThumbnailCaption.IsVisible = true;
}

Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также