public static StringBuilder Append(this StringBuilder stringBuilder, int index, XpoUrlText xpoUrlText) { if (xpoUrlText != null) { var americanCulture = new CultureInfo("en-US"); stringBuilder .Append(index, Text, xpoUrlText.Text) .Append(index, Color, xpoUrlText.Color) .Append(index, FontName, xpoUrlText.FontName) .Append(index, FontSize, xpoUrlText.FontSize) .Append(index, Alignment, xpoUrlText.Alignment + 1) .Append(index, Decoration, xpoUrlText.FontStyle.ToString().Replace(" ", "").ToLower()) .Append(index, DropX, ConvertNumberToCultureNumber(xpoUrlText.DropX,americanCulture)) .Append(index, DropY, ConvertNumberToCultureNumber(xpoUrlText.DropY, americanCulture)) .Append(index, PlacingPointX, ConvertNumberToCultureNumber(xpoUrlText.PlacingPointX,americanCulture)) .Append(index, PlacingPointY, ConvertNumberToCultureNumber(xpoUrlText.PlacingPointY,americanCulture)) .Append(index, Rotation, xpoUrlText.Rotation) .Append(index, Transformation, xpoUrlText.Transformation); } return stringBuilder; }
public static StringBuilder Append(this StringBuilder stringBuilder, int index, XpoUrlText xpoUrlText) { if (xpoUrlText != null) { var americanCulture = new CultureInfo("en-US"); stringBuilder .Append(index, Text, xpoUrlText.Text) .Append(index, Color, xpoUrlText.Color) .Append(index, FontName, xpoUrlText.FontName) .Append(index, FontSize, xpoUrlText.FontSize) .Append(index, Alignment, xpoUrlText.Alignment + 1) .Append(index, Decoration, xpoUrlText.FontStyle.ToString().Replace(" ", "").ToLower()) .Append(index, DropX, ConvertNumberToCultureNumber(xpoUrlText.DropX, americanCulture)) .Append(index, DropY, ConvertNumberToCultureNumber(xpoUrlText.DropY, americanCulture)) .Append(index, PlacingPointX, ConvertNumberToCultureNumber(xpoUrlText.PlacingPointX, americanCulture)) .Append(index, PlacingPointY, ConvertNumberToCultureNumber(xpoUrlText.PlacingPointY, americanCulture)) .Append(index, Rotation, xpoUrlText.Rotation) .Append(index, Transformation, xpoUrlText.Transformation); } return(stringBuilder); }
/// <summary> /// Creates a new instance of the FluentXpoUrlDesign /// </summary> public FluentXpoUrlText(string text) { XpoUrlText = new XpoUrlText { Text = text }; }
/// <summary> /// Creates a new instance of the FluentXpoUrlDesign /// </summary> public FluentXpoUrlText(string text) { XpoUrlText = new XpoUrlText {Text = text}; }