DialogStringId Property

Summary
Gets the dialog string ID for this object RasterDialogStringsId.
Syntax
C#
C++/CLI
public RasterDialogStringsId DialogStringId { get; } 
public: 
property RasterDialogStringsId DialogStringId { 
   RasterDialogStringsId get(); 
} 

Property Value

Represents the dialog string ID for this object RasterDialogStringsId.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.WinForms.CommonDialogs.File; 
 
 
public void RasterOpenDialogExample2() 
{ 
   RasterCodecs rasterCodecs = new RasterCodecs(); 
 
   RasterOpenDialog openDlg = new RasterOpenDialog(rasterCodecs); 
   openDlg.LoadFileImage = true; 
   openDlg.GenerateThumbnail = true; 
 
   // customize dialog OK button string 
   RasterDialogStrings dialogString = RasterOpenDialog.GetDialogString(RasterDialogStringsId.OpenOk); 
   string oldString = dialogString.Text; 
   dialogString.Text = "Do it!"; 
   Console.WriteLine($"String ID of OK button is: {dialogString.DialogStringId}"); 
   RasterOpenDialog.SetDialogString(dialogString); 
 
   bool restoreOriginalText = false; 
   if (restoreOriginalText) 
   { 
      dialogString.Text = oldString; 
      RasterOpenDialog.SetDialogString(dialogString); 
   } 
   if (DialogResult.OK == openDlg.ShowDialog(null)) 
   { 
      RasterDialogFileData fileDataItem = openDlg.OpenedFileData[0]; 
      RasterImage loadedImage = fileDataItem.Image; 
      RasterImage generatedThumbnail = fileDataItem.Thumbnail; 
      // Do something with the 'loadedImage' and 'generatedThumbnail' images. 
      // ... 
 
      loadedImage.Dispose(); 
      generatedThumbnail.Dispose(); 
 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.7.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms.CommonDialogs.File Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.