public static void SetStyle(byte rplId, object styleProp, StyleWriter writer) { switch (rplId) { case 33: break; case 37: { int num = (int)styleProp; if (num > 0) { writer.Write(rplId, num); } break; } default: { bool flag = true; byte?stylePropByte = PageItem.GetStylePropByte(rplId, styleProp, ref flag); int? nullable = stylePropByte; if (nullable.HasValue) { writer.Write(rplId, stylePropByte.Value); } else if (flag) { writer.Write(rplId, styleProp.ToString()); } break; } } }
internal static void SetStyle(byte rplId, object styleProp, StyleWriter writer) { switch (rplId) { case 33: return; case 37: { int num = (int)styleProp; if (num > 0) { writer.Write(rplId, num); } return; } } bool convertToString = true; byte?stylePropByte = PageItem.GetStylePropByte(rplId, styleProp, ref convertToString); if (stylePropByte.HasValue) { writer.Write(rplId, stylePropByte.Value); } else if (convertToString) { writer.Write(rplId, styleProp.ToString()); } }
public static void AddStyle(byte rplId, ReportColorProperty prop, StyleWriter writer) { if (prop != null && prop.Value != null) { writer.Write(rplId, prop.Value.ToString()); } }
public static void AddStyle(byte rplId, ReportIntProperty prop, StyleWriter writer) { if (prop != null) { writer.Write(rplId, prop.Value); } }
internal static void AddStyle(byte rplId, ReportStringProperty prop, StyleWriter writer) { if (prop != null && prop.Value != null) { writer.Write(rplId, prop.Value); } }
internal static void AddStyle(byte rplId, ReportProperty prop, StyleWriter writer) { byte?stylePropByte = PageItem.GetStylePropByte(rplId, prop); if (stylePropByte.HasValue) { writer.Write(rplId, stylePropByte.Value); } }
public static void AddStyle(byte rplId, ReportProperty prop, StyleWriter writer) { byte?stylePropByte = PageItem.GetStylePropByte(rplId, prop); int? nullable = stylePropByte; if (nullable.HasValue) { writer.Write(rplId, stylePropByte.Value); } }