示例#1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds object link data to the specified string builder (to affect the next string added)
		/// </summary>
		/// <param name="strBldr">The string builder to be modified.</param>
		/// <param name="attr">The attribute to process.</param>
		/// <param name="type">The type of object data to be added to the text properties.</param>
		/// ------------------------------------------------------------------------------------
		private static void AddObjDataToBldr(ITsIncStrBldr strBldr, XAttribute attr, FwObjDataTypes type)
		{
			byte[] objData = TsStringUtils.GetObjData(new Guid(attr.Value), (byte)type);
			strBldr.SetStrPropValueRgch((int)FwTextPropType.ktptObjData, objData, objData.Length);
		}
示例#2
0
 /// <summary>
 /// Sets the specified property to the string value represented by the specified byte array.
 /// </summary>
 public static void SetStringValue(this ITsIncStrBldr tisb, FwTextPropType tpt, byte[] value)
 {
     tisb.SetStrPropValueRgch((int)tpt, value, value == null ? 0 : value.Length);
 }