Ejemplo n.º 1
0
 /// <summary>
 /// Sets the specified property to the specified int value.
 /// </summary>
 public static void SetIntValue(this ITsIncStrBldr tisb, FwTextPropType tpt, FwTextPropVar var, int value)
 {
     tisb.SetIntPropValues((int)tpt, (int)var, value);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the int property at the specified index.
        /// </summary>
        public static int GetIntProperty(this ITsTextProps textProps, int index, out FwTextPropType tpt, out FwTextPropVar var)
        {
            int t, v;
            int value = textProps.GetIntProp(index, out t, out v);

            tpt = (FwTextPropType)t;
            var = (FwTextPropVar)v;
            return(value);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the specified property to the specified int value.
 /// </summary>
 public static void SetIntValue(this ITsPropsBldr tpb, FwTextPropType tpt, FwTextPropVar var, int value)
 {
     tpb.SetIntPropValues((int)tpt, (int)var, value);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Attempts to get the value of the specified int property.
        /// </summary>
        public static bool TryGetIntValue(this ITsTextProps textProps, FwTextPropType tpt, out FwTextPropVar var, out int value)
        {
            int v;

            value = textProps.GetIntPropValues((int)tpt, out v);
            if (v == -1 && value == -1)
            {
                var = FwTextPropVar.ktpvDefault;
                return(false);
            }

            var = (FwTextPropVar)v;
            return(true);
        }