Ejemplo n.º 1
0
        private void SetLayoutNumbers(LayoutNumbers layoutNumbers)
        {
            // Creates a number substitution to select which digits are displayed.
            String localName = "en-us";

            if (layoutNumbers == LayoutNumbers.Arabic)
            {
                localName = "ar-eg";
            }
            NumberSubstitution numberSubstitution = new NumberSubstitution(FactoryDWrite, NumberSubstitutionMethod.Contextual, localName, true);

            flowLayout.SetNumberSubstitution(numberSubstitution);

            SetLayoutText(textMode_);
            numberSubstitution.Dispose();
        }
Ejemplo n.º 2
0
        private void SetLayoutNumbers(LayoutNumbers layoutNumbers)
        {
            // Creates a number substitution to select which digits are displayed.
            String localName = "en-us";
            if (layoutNumbers == LayoutNumbers.Arabic)
                localName = "ar-eg";
            NumberSubstitution numberSubstitution = new NumberSubstitution(FactoryDWrite, NumberSubstitutionMethod.Contextual, localName, true);
            flowLayout.SetNumberSubstitution(numberSubstitution);

            SetLayoutText(textMode_);
            numberSubstitution.Dispose();
        }