ImageEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
- Inherits
- Event
Args - Image
Event Args
- Event
Description
The ImageEventArgs class provides data for all events that occur with images. These are the TextControl.ImageCreated, TextControl.ImageDeleted, TextControl.ImageClicked, TextControl.ImageDoubleClicked, TextControl.ImageRightClicked, TextControl.ImageMoved, TextControl.ImageSelected, TextControl.ImageDeselected and TextControl.ImageSized events.
Syntax
public class ImageEventArgs : EventArgsPublic Class ImageEventArgs
Inherits EventArgsExamples
The following example uses ImageEventArgs.Image while handling ImageClicked.
textControl.ImageClicked += (_, e) =>
{
if (e.Image != null)
{
e.Image.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.ImageClicked,
Sub(sender, e)
If e.Image IsNot Nothing Then
e.Image.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| Image | Gets an object that represents the image which causes the event. It is of the type Image. |