Class Common
Class that holds the commonly utilizing methods and properties for PivotGrid.
Inheritance
Namespace: Syncfusion.Windows.Controls.PivotGrid
Assembly: Syncfusion.PivotAnalysis.WPF.dll
Syntax
public class Common : Object
Constructors
Common()
Declaration
public Common()
Methods
FindVisualChild<childItem>(DependencyObject)
Static method to find child item of the control.
Declaration
public static childItem FindVisualChild<childItem>(DependencyObject obj)
where childItem : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The dependency object. |
Returns
Type | Description |
---|---|
childItem | The generic type. |
Type Parameters
Name | Description |
---|---|
childItem | The generic class. |
FindVisualChildWithName<childItem>(DependencyObject, String)
Static method to find name of the visual child element.
Declaration
public static childItem FindVisualChildWithName<childItem>(DependencyObject obj, string name)
where childItem : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The dependency object. |
System.String | name | The name of the visual child element. |
Returns
Type | Description |
---|---|
childItem | The generic type. |
Type Parameters
Name | Description |
---|---|
childItem | The generic class. |
GetColorFromHexaDecimal(String)
Gets the color from hexadecimal string.
Declaration
public static SolidColorBrush GetColorFromHexaDecimal(string hexaColor)
Parameters
Type | Name | Description |
---|---|---|
System.String | hexaColor | Hexadecimal format string for a color object. |
Returns
Type | Description |
---|---|
System.Windows.Media.SolidColorBrush | Brush. |
GetFontWeightFromString(String)
Gets the font weight from input string.
Declaration
public static FontWeight GetFontWeightFromString(string fontWeight)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontWeight |
Returns
Type |
---|
System.Windows.FontWeight |
GetParentElement<T>(DependencyObject)
Static method to get the parent item of the control.
Declaration
public static T GetParentElement<T>(DependencyObject child)
where T : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | child | Dependency object. |
Returns
Type | Description |
---|---|
T | Generic type. |
Type Parameters
Name | Description |
---|---|
T | Generic Class. |
GetPathGeometry(String)
Method to get the geometry of given path.
Declaration
public static PathGeometry GetPathGeometry(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The given data. |
Returns
Type | Description |
---|---|
System.Windows.Media.PathGeometry | The PathGeometry. |
GetTextSize(String)
Gets the size of the text.
Declaration
public static Size GetTextSize(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text inside text block. |
Returns
Type | Description |
---|---|
System.Windows.Size | Size of the text. |
GetValues(Type)
Returns an array of enumeration constants of respective type.
Declaration
public static Array GetValues(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Enumeration type. |
Returns
Type | Description |
---|---|
System.Array | Array of enumeration constants. |