SkiaHostControl class
WinForms controls — class
Host control that provides a Skia drawing surface and a DrawingManager to host Skia components.
Members
| Member | Kind | Description |
|---|---|---|
int ReloadExtensions() | Method | Reloads extensions from the install root and refreshes their palette entries. Returns the number of extension components added. |
Beep.Skia.DrawingManager DrawingManager | Property | Gets or sets the drawing manager. |
SkiaHostControl() | Method | Initializes a new instance of the SkiaHostControl class. |
void RebuildCommentPins() | Method | Rebuilds comment pins from the current components and comments. |
void RefreshCommentPins() | Method | Rebuilds comment pins and repaints the canvas. |
Beep.Skia.Collaboration.DiagramComment AddCommentToSelection(string text, string authorId = "local") | Method | Adds a comment anchored to the first selected component. Returns null when nothing is selected or the user cannot comment. |
bool ResolveComment(string commentId, string userId = "local") | Method | Resolves a comment by id and repaints. |
void ExportToPng(string filePath, float scale = 2f) | Method | Exports the current diagram to a PNG file. |
void ExportToSvg(string filePath) | Method | Exports the current diagram to an SVG file with a white background. |
void ExportToPdf(string filePath) | Method | Exports the current diagram to a PDF file. |
void PrintWithPreview() | Method | Shows a print preview for the current diagram. |
void BeginInit() | Method | Gets or sets the begin init. |
SkiaComponentDescriptorCollection DesignTimeComponents | Property | Gets or sets the design time components. |
bool BlockOverlappingDrops | Property | If true, component creation will be blocked when the new component's bounds overlap an existing component. Default false: overlaps allowed (prevents silent disappearance when dropping in same area). |
Beep.Skia.SkiaComponent CreateAndAddComponent(Type componentType, float x, float y, float width, float height, string name) | Method | Gets or sets the create and add component. |
Beep.Skia.SkiaComponent CreateAndAddComponentFromDescriptor(SkiaComponentDescriptor desc) | Method | Gets or sets the create and add component from descriptor. |