本文整理汇总了C#中Paragraph.setIndentationLeft方法的典型用法代码示例。如果您正苦于以下问题:C# Paragraph.setIndentationLeft方法的具体用法?C# Paragraph.setIndentationLeft怎么用?C# Paragraph.setIndentationLeft使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paragraph
的用法示例。
在下文中一共展示了Paragraph.setIndentationLeft方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateInventarioEntryDetails
private void GenerateInventarioEntryDetails(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
string entry = "";
Paragraph p;
GisaDataSetHelper.GetFRDBaseDataAdapter(string.Format("WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.FRDBase);
GisaDataSetHelper.GetSFRDDatasProducaoDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDDatasProducao.IDFRDBase=FRDBase.ID WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.SFRDDatasProducao);
GisaDataSetHelper.GetSFRDUFCotaDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDUFCota.IDFRDBase=FRDBase.ID WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.SFRDUFCota);
//PersistencyHelper.cleanDeletedRows()
foreach (GISADataset.FRDBaseRow frd in rhRow.NivelRowByNivelRelacaoHierarquica.GetFRDBaseRows()) {
if (frd.IDTipoFRDBase == (long)TipoFRDBase.FRDOIPublicacao) {
if (frd.GetSFRDDatasProducaoRows().Length > 0) { {
if (!frd.GetSFRDDatasProducaoRows()[0].IsInicioTextoNull() && frd.GetSFRDDatasProducaoRows()[0].InicioTexto.Length > 0) {
entry += frd.GetSFRDDatasProducaoRows()[0].InicioTexto + ", ";
}
entry += GetInicioData(frd.GetSFRDDatasProducaoRows()[0]) + " - " + GetFimData(frd.GetSFRDDatasProducaoRows()[0]);
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
doc.add(p);
}
}
entry = frd.GetSFRDUFCotaRows()[0].Cota;
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
doc.add(p);
entry = Nivel.GetCodigoOfNivel(rhRow.NivelRowByNivelRelacaoHierarquica);
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
doc.add(p);
}
}
}
示例2: GenerateInventarioEntry
protected override void GenerateInventarioEntry(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
GISADataset.NivelRow n = rhRow.NivelRowByNivelRelacaoHierarquica;
string entry = string.Format("{0}: {1} - {2}", rhRow.TipoNivelRelacionadoRow.Codigo, rhRow.NivelRowByNivelRelacaoHierarquica.Codigo, Nivel.GetDesignacao(n));
Paragraph p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm));
doc.add(p);
DoRemovedEntries(1);
if (!rhRow.TipoNivelRelacionadoRow.TipoNivelRow.IsDocument) {
GenerateInventarioEntryChildren(doc, rhRow, CurrentIndentCm);
}
else {
GenerateInventarioEntryDetails(doc, rhRow, CurrentIndentCm);
}
}
示例3: GenerateInventarioEntryDetails
private void GenerateInventarioEntryDetails(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
string entry = string.Empty;
Paragraph p;
GISADataset.NivelRow n = rhRow.NivelRowByNivelRelacaoHierarquica;
foreach (GISADataset.FRDBaseRow frd in rhRow.NivelRowByNivelRelacaoHierarquica.GetFRDBaseRows()) {
if (frd.IDTipoFRDBase == (long)TipoFRDBase.FRDOIPublicacao) {
entry = Nivel.GetCodigoOfNivel(n);
p = new Paragraph(CentimeterToPoint(0.5F), entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(0));
doc.add(p);
entry = string.Format("{0}: {1}", rhRow.TipoNivelRelacionadoRow.Codigo, Nivel.GetDesignacao(n));
p = new Paragraph(CentimeterToPoint(0.5F), entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(0.5F));
doc.add(p);
if (frd.GetSFRDDatasProducaoRows().Length > 0) {
entry = "";
if (!frd.GetSFRDDatasProducaoRows()[0].IsInicioTextoNull() && frd.GetSFRDDatasProducaoRows()[0].InicioTexto.Length > 0){
entry += frd.GetSFRDDatasProducaoRows()[0].InicioTexto + ", ";
}
entry += GetInicioData(frd.GetSFRDDatasProducaoRows()[0]) + " - " + GetFimData(frd.GetSFRDDatasProducaoRows()[0]);
p = new Paragraph(CentimeterToPoint(0.5F), entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1F));
doc.add(p);
}
entry = "**Dimensão e suporte**";
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1F));
doc.add(p);
}
entry = GetControloAutFormaAut(frd, new TipoNoticiaAut[] {TipoNoticiaAut.EntidadeProdutora});
//For Each idx As GISADataset.IndexFRDCARow In frd.GetIndexFRDCARows()
// If idx.ControloAutRow.IDTipoNoticiaAut = TipoNoticiaAut.EntidadeProdutora Then
// For Each cad As GISADataset.ControloAutDicionarioRow In idx.ControloAutRow.GetControloAutDicionarioRows
// If cad.IDTipoControloAutForma = TipoControloAutForma.FormaAutorizada Then
// If entry.Length > 0 Then entry += " / "
// entry += cad.DicionarioRow.Termo
// End If
// Next
// End If
//Next
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
if (frd.GetSFRDContextoRows().Length == 1){
entry = frd.GetSFRDContextoRows()[0].HistoriaAdministrativa;
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
entry = frd.GetSFRDContextoRows()[0].HistoriaCustodial;
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
entry = frd.GetSFRDContextoRows()[0].FonteImediataDeAquisicao;
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
}
entry = GetControloAutFormaAut(frd, new TipoNoticiaAut[] {TipoNoticiaAut.TipologiaInformacional});
//For Each idx As GISADataset.IndexFRDCARow In frd.GetIndexFRDCARows()
// If idx.ControloAutRow.IDTipoNoticiaAut = TipoNoticiaAut.TipologiaInformacional Then
// For Each cad As GISADataset.ControloAutDicionarioRow In idx.ControloAutRow.GetControloAutDicionarioRows
// If cad.IDTipoControloAutForma = TipoControloAutForma.FormaAutorizada Then
// If entry.Length > 0 Then entry += " / "
// entry += cad.DicionarioRow.Termo
// End If
// Next
// End If
//Next
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
if (frd.GetSFRDConteudoEEstruturaRows().Length == 1) {
entry = frd.GetSFRDConteudoEEstruturaRows()[0].ConteudoInformacional;
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
}
if (frd.GetSFRDCondicaoDeAcessoRows().Length == 1) {
entry = frd.GetSFRDCondicaoDeAcessoRows()[0].CondicaoDeReproducao;
if (entry.Length > 0) {
p = new Paragraph(entry, this.BodyFont);
p.setIndentationLeft(CentimeterToPoint(1));
doc.add(p);
}
}
entry = GetControloAutFormaAut(frd, new TipoNoticiaAut[] {TipoNoticiaAut.Ideografico, TipoNoticiaAut.Onomastico, TipoNoticiaAut.ToponimicoGeografico});
//For Each idx As GISADataset.IndexFRDCARow In frd.GetIndexFRDCARows()
//.........这里部分代码省略.........