Host control that provides a Skia drawing surface and a DrawingManager to host Skia components.

Members

MemberKindDescription
int ReloadExtensions()MethodReloads extensions from the install root and refreshes their palette entries. Returns the number of extension components added.
Beep.Skia.DrawingManager DrawingManagerPropertyGets or sets the drawing manager.
SkiaHostControl()MethodInitializes a new instance of the SkiaHostControl class.
void RebuildCommentPins()MethodRebuilds comment pins from the current components and comments.
void RefreshCommentPins()MethodRebuilds comment pins and repaints the canvas.
Beep.Skia.Collaboration.DiagramComment AddCommentToSelection(string text, string authorId = "local")MethodAdds 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")MethodResolves a comment by id and repaints.
void ExportToPng(string filePath, float scale = 2f)MethodExports the current diagram to a PNG file.
void ExportToSvg(string filePath)MethodExports the current diagram to an SVG file with a white background.
void ExportToPdf(string filePath)MethodExports the current diagram to a PDF file.
void PrintWithPreview()MethodShows a print preview for the current diagram.
void BeginInit()MethodGets or sets the begin init.
SkiaComponentDescriptorCollection DesignTimeComponentsPropertyGets or sets the design time components.
bool BlockOverlappingDropsPropertyIf 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)MethodGets or sets the create and add component.
Beep.Skia.SkiaComponent CreateAndAddComponentFromDescriptor(SkiaComponentDescriptor desc)MethodGets or sets the create and add component from descriptor.

Related