Embedded images
This commit is contained in:
@@ -198,7 +198,10 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
#endregion
|
||||
#region Properties and Variables
|
||||
|
||||
public bool IsRoFigure
|
||||
{
|
||||
get { return (MyItemInfo.IsFigure && MyItemInfo.MyContent.MyImage == null); }
|
||||
}
|
||||
public bool IsRoTable
|
||||
{
|
||||
get { return (Parent is VlnFlexGrid && (Parent as VlnFlexGrid).IsRoTable); }
|
||||
@@ -701,7 +704,7 @@ namespace Volian.Controls.Library
|
||||
// When a border style is changed, the richtextbox's handle is 'destroyed', so that the handleDestroyed
|
||||
// event is done. This was causing the event handlers to be removed (RemoveEventHandler) so that the
|
||||
// keypress event handler was not run.
|
||||
private void RemoveEventHandlers()
|
||||
public void RemoveEventHandlers()
|
||||
{
|
||||
if (_EventHandlersForKeyPress==0) return;
|
||||
ContentsResized -= new ContentsResizedEventHandler(StepRTB_ContentsResized);
|
||||
@@ -2040,6 +2043,17 @@ namespace Volian.Controls.Library
|
||||
ImageWidth = img.Width;
|
||||
Width = ImageWidth + 2;
|
||||
Paste();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
else if (iData.GetDataPresent(DataFormats.Dib))
|
||||
{
|
||||
System.Drawing.Image img = Clipboard.GetImage();
|
||||
ImageWidth = img.Width;
|
||||
Width = ImageWidth + 2;
|
||||
Paste();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user