I'm looking at the constructor for the LinearGradientBrush class and I see it has an override which takes a collection of GradientStops and a double as an angle.
When I look at the properties of it, I can't find how to get the angle form the brush once it's been defined.
Is there a way to do this, or am I going to have to write some function which looks at the Start and End points and calculates the angle from those? (Blech - please do not tell me that is my only option...)
According to referencesource.microsoft.com,
angle
is not stored, but just used to calculateEndPoint
:Getting
angle
fromEndPoint
should be straightforward.