Class Utils
Class used to get the common functionalities.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.SmithChart
Assembly: Syncfusion.SfSmithChart.WinForms.dll
Syntax
public class Utils
Constructors
Utils()
Declaration
public Utils()
Methods
GetDpiSize(SizeF)
Gets the size of the text according to the DPI.
Declaration
public static SizeF GetDpiSize(SizeF size)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | size | Existing size that need to be modified according to DPI. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | Returns the size according to the DPI. |
GetLuminanceColor(Color)
Method used to get the luminance color from RGB.
Declaration
public static Brush GetLuminanceColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | The Color |
Returns
Type | Description |
---|---|
System.Drawing.Brush | The luminance brush. |
GetPropertyInfo(Object, String)
Gets the property from the specified object.
Declaration
public static PropertyInfo GetPropertyInfo(object obj, string path)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to retrieve a property. |
System.String | path | Property name |
Returns
Type | Description |
---|---|
System.Reflection.PropertyInfo | The Property Information |
GetSegmentColor(ChartSeries, Object)
Gets the interior color for series segments.
Declaration
public static Color GetSegmentColor(ChartSeries series, object parameter)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The Series |
System.Object | parameter | The Parameter |
Returns
Type | Description |
---|---|
System.Drawing.Color | The segment color brush |
IntersectingCirclePoints(Single, Single, Single, Single, Single, Single, Boolean)
Intersect point of two Circles
Declaration
public static PointF IntersectingCirclePoints(float x1, float y1, float r1, float x2, float y2, float r2, bool isImpedence)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x1 | Circle1 centerX |
System.Single | y1 | Circle1 centerY |
System.Single | r1 | Circle1 radius |
System.Single | x2 | Circle2 circleX |
System.Single | y2 | Circle2 centerY |
System.Single | r2 | Circle2 radius |
System.Boolean | isImpedence | RenderingType of Chart |
Returns
Type | Description |
---|---|
System.Drawing.PointF | Calculates the intersecting circle points. |
IsPointRegion(RectangleF, Point)
Returns true, If the mouse position is within the rectangle region.
Declaration
public static bool IsPointRegion(RectangleF rect, Point mousePos)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rect | The |
System.Drawing.Point | mousePos | The Mouse Point |
Returns
Type | Description |
---|---|
System.Boolean | Returns the boolean value |
IsValidItemData(Object)
Validate the data point is valid or not.
Declaration
public static bool IsValidItemData(object data)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data | data source data points |
Returns
Type | Description |
---|---|
System.Boolean | property to indicate valid data. |
ReflectedObject(Object, String)
Reflection for binding path
Declaration
public static object ReflectedObject(object parentObj, string actualPath)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parentObj | The Parent Object |
System.String | actualPath | The Actual Path |
Returns
Type | Description |
---|---|
System.Object | The Reflected Object |