Profile Picture

StrokeStyle Issue

Posted By Thunis Kruger 11 Years Ago
Author
Message
Thunis Kruger
questionmark Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 6, Visits: 1

Hi Support,

The sub below set the style for all the shapes on the NDocument. How do I set the style for the selected Shape only?

 

Private Sub SetStyleForLine()

If bInit = True Then Exit Sub

For Each oNode As NShape In View.Selection.Nodes

Dim oStrokeStyle As NStrokeStyle

If oNode.Style Is Nothing AndAlso oNode.Style.StrokeStyle Is Nothing Then

Continue For

Else

oStrokeStyle = oNode.ComposeStrokeStyle

End If

oStrokeStyle.Color = colorComb.SelectedColor

oStrokeStyle.Width = New NLength(CSng(NewLineWidth.Value))

oNode.Style.StrokeStyle = oStrokeStyle

Next

View.SmartRefresh()

End Sub

 

Thanks Thunis






Similar Topics


Reading This Topic