ExcelFile.TryGetBuiltInStyleType Method
Tries to convert a string into an built-in style identifier. Will return true if styleName can be converted, false otherwise.
Syntax
Namespace: FlexCel.Core
public abstract Boolean TryGetBuiltInStyleType(String styleName, out TBuiltInStyle style, out Int32 level)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
styleName | String | Style that we want to convert to built-in style. | |
out | style | TBuiltInStyle | Returns the built-in style. This value is only valid if this method returns true. |
out | level | Int32 | Returns the level built-in style (1 based). This value is only valid if this method returns true, and only applies to outline styles. It will be 0 for non outline styles. |
Returns
True is styleNameis a built-in style (and thus style and level are valid), false otherwise.