Example #1
0
        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;
        }
Example #2
0
        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);
        }
Example #3
0
 /// <summary>
 /// Creates a new instance of the FluentXpoUrlDesign
 /// </summary>
 public FluentXpoUrlText(string text)
 {
     XpoUrlText = new XpoUrlText {
         Text = text
     };
 }
Example #4
0
 /// <summary>
 /// Creates a new instance of the FluentXpoUrlDesign
 /// </summary>
 public FluentXpoUrlText(string text)
 {
     XpoUrlText = new XpoUrlText {Text = text};
 }