src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/Utils/StyleSetExtensions.cs
/// <summary>
///     Overrides pen colors in one step.
/// </summary>
/// <param name="styleSet"></param>
/// <param name="resourceId"></param>
/// <param name="color"></param>
Overrides pen colors in one step.
Overrides pen colors in one step .
public static void OverridePenColor(this StyleSet styleSet, StyleSetResourceId resourceId, Color color)
        {
            var settings = styleSet.GetOverriddenPenSettings(resourceId) ?? new PenSettings();
            settings.Color = color;
            styleSet.OverridePen(resourceId, settings);
        }
public static void OverridePenColor ( this StyleSet styleSet , StyleSetResourceId resourceId , Color color ) { var settings = styleSet . GetOverriddenPenSettings ( resourceId ) ?? new PenSettings ( ) ; settings . Color = color ; styleSet . OverridePen ( resourceId , settings ) ; }
Overrides pen colors in one step.
Overrides pen colors in one step .
StyleSet
this
resourceId
StyleSetResourceId
None
color
Color
None
styleSet
None