/// <summary> /// Set Text Color Transition /// </summary> public static int SetColor(IAMTimelineObj pSource1Obj, Color srcColor) { int hr = 0; hr = pSource1Obj.SetSubObjectGUID(DESConsts.GUID_TR_ColorSource); IPropertySetter ipro = (IPropertySetter) new PropertySetter(); DESHelper.AddParameter(ipro, "Color", srcColor.ToArgb()); pSource1Obj.SetPropertySetter(ipro); return(hr); }
private void TestPropSet() { int hr; IPropertySetter pVal = (IPropertySetter) new PropertySetter(); IPropertySetter pVal2; hr = m_pVideoGroupObj.SetPropertySetter(pVal); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj.GetPropertySetter(out pVal2); DESError.ThrowExceptionForHR(hr); Debug.Assert(pVal == pVal2, "PropertySetter"); }