本文整理汇总了C#中IVwEnv.AddTimeProp方法的典型用法代码示例。如果您正苦于以下问题:C# IVwEnv.AddTimeProp方法的具体用法?C# IVwEnv.AddTimeProp怎么用?C# IVwEnv.AddTimeProp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IVwEnv
的用法示例。
在下文中一共展示了IVwEnv.AddTimeProp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DisplayAnnotation
//.........这里部分代码省略.........
if (fQuoteParaRtoL)
vwenv.OpenParagraph(); // Conc paragraphs don't work well for R-to-L
else
vwenv.OpenConcPara(0, 0, 0, 0);
vwenv.AddString(quotePara.Contents);
vwenv.CloseParagraph();
vwenv.CloseTableCell();
}
CloseTableRow(vwenv, ann);
#endregion
if (!expanded)
return;
#region Second through fifth rows
bool fRegularAnnotation = ann.AnnotationType != NoteType.CheckingError;
//Second row has quote
DisplayExpandableAnnotation(vwenv, ann,
(int)ScrScriptureNoteTags.kflidQuote,
ann.QuoteOA.Hvo, ann.QuoteOA,
fRegularAnnotation ? m_quoteLabel : m_detailsLabel, !fRegularAnnotation);
// Third row has discussion
DisplayExpandableAnnotation(vwenv, ann,
ScrScriptureNoteTags.kflidDiscussion,
ann.DiscussionOA.Hvo, ann.DiscussionOA,
fRegularAnnotation ? m_discussionLabel : m_messageLabel, !fRegularAnnotation);
// Fourth row has recommendation (i.e. suggestion)
DisplayExpandableAnnotation(vwenv, ann,
ScrScriptureNoteTags.kflidRecommendation,
ann.RecommendationOA.Hvo, ann.RecommendationOA, m_suggestionLabel);
// Fifth row has resolution
DisplayExpandableAnnotation(vwenv, ann,
ScrScriptureNoteTags.kflidResolution,
ann.ResolutionOA.Hvo, ann.ResolutionOA, m_resolutionLabel);
#endregion
#region Sixth row has author
SetBackgroundColorForNote(ann, vwenv);
OpenTableRow(vwenv, ann);
// Display empty first and second cell
vwenv.OpenTableCell(1, 2);
vwenv.CloseTableCell();
// Display author in third cell
vwenv.OpenTableCell(1, 3);
vwenv.OpenParagraph();
SetDisabledColorForNote(vwenv);
vwenv.AddString(m_authorLabel);
vwenv.CloseParagraph();
vwenv.CloseTableCell();
CloseTableRow(vwenv, ann);
#endregion
#region Seventh row has dates
SetBackgroundColorForNote(ann, vwenv);
OpenTableRow(vwenv, ann);
// Display empty first and second cell
vwenv.OpenTableCell(1, 2);
vwenv.CloseTableCell();
// Display date created in third cell
vwenv.OpenTableCell(1, 1);
vwenv.OpenParagraph();
vwenv.AddString(m_createdLabel);
vwenv.AddTimeProp(CmAnnotationTags.kflidDateCreated, 0);
vwenv.CloseParagraph();
vwenv.CloseTableCell();
// Display date modified in fourth/fifth cells
vwenv.OpenTableCell(1, 2);
vwenv.OpenParagraph();
vwenv.AddString(m_modifiedLabel);
vwenv.AddTimeProp(CmAnnotationTags.kflidDateModified, 0);
vwenv.CloseParagraph();
vwenv.CloseTableCell();
// Display date resolved in last two cells
vwenv.OpenTableCell(1, 2);
vwenv.OpenParagraph();
if (ann.ResolutionStatus == NoteStatus.Closed)
{
SetDisabledColorForNote(vwenv);
vwenv.AddString(m_resolvedLabel);
// TODO (TE-4039) This date is incorrect
//vwenv.AddTimeProp(ScrScriptureNote.ScrScriptureNoteTags.kflidDateResolved, 0);
}
vwenv.CloseParagraph();
vwenv.CloseTableCell();
CloseTableRow(vwenv, ann);
#endregion
}