The following plugin changes the font used for regression weights to bold italic. The Undraw and Draw methods make the changes immediately visible. The UndoToHere / UndoResume method pair allows you to undo the changes by pressing .
Imports Microsoft.VisualBasic
Imports Amos
Imports Amos.pd
<System.ComponentModel.Composition.Export(GetType(IPlugin))>
Public Class CustomCode
Implements IPlugin
Public Function Mainsub() As Integer Implements IPlugin.Mainsub
Dim e As PDElement
UndoToHere()
For Each e In PDElements
If e.IsPath Then
e.ParameterFontBold = True
e.ParameterFontItalic = True
End If
Next
pd.Refresh()
UndoResume()
End Function
Public Function Name() As String Implements IPlugin.Name
End Function
Public Function Description() As String Implements IPlugin.Description
End Function
End Class