Example #1
0
        internal int GetTableProperties(
            IntPtr pfsclient,                       // IN:  
            IntPtr nmTable,                         // IN:  
            uint fswdirTrack,                       // IN:  
            out PTS.FSTABLEOBJPROPS fstableobjprops)// OUT: 
        {
            int fserr = PTS.fserrNone;
            try
            {
                TableParagraph para = PtsContext.HandleToObject(nmTable) as TableParagraph;
                PTS.ValidateHandle(para);

                para.GetTableProperties(fswdirTrack, out fstableobjprops);
            }
            catch (Exception e)
            {
                fstableobjprops = new PTS.FSTABLEOBJPROPS();
                PtsContext.CallbackException = e;
                fserr = PTS.fserrCallbackException;
            }
            catch
            {
                fstableobjprops = new PTS.FSTABLEOBJPROPS();
                PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception");
                fserr = PTS.fserrCallbackException;
            }
            return (fserr);
        }
        /// <summary>
        /// GetTableProperties
        /// </summary>
        /// <param name="fswdirTrack">Direction of Track</param>
        /// <param name="fstableobjprops">Properties of the table</param>
        internal void GetTableProperties(
            uint fswdirTrack,                       // IN:  direction of Track
            out PTS.FSTABLEOBJPROPS fstableobjprops)// OUT: properties of the table
        {
            fstableobjprops = new PTS.FSTABLEOBJPROPS();

            fstableobjprops.fskclear = PTS.FSKCLEAR.fskclearNone;
            fstableobjprops.ktablealignment = PTS.FSKTABLEOBJALIGNMENT.fsktableobjAlignLeft;
            fstableobjprops.fFloat = PTS.False;
            fstableobjprops.fskwr = PTS.FSKWRAP.fskwrBoth;
            fstableobjprops.fDelayNoProgress = PTS.False;
            fstableobjprops.dvrCaptionTop = 0;
            fstableobjprops.dvrCaptionBottom = 0;
            fstableobjprops.durCaptionLeft = 0;
            fstableobjprops.durCaptionRight = 0;
            fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
        }