当前位置: 首页>>代码示例>>C#>>正文


C# Paragraph.setIndentationLeft方法代码示例

本文整理汇总了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);
				}
			}
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:32,代码来源:InventarioMultinivel.cs

示例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);
			}
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:17,代码来源:InventarioMultinivel.cs

示例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()
//.........这里部分代码省略.........
开发者ID:aureliopires,项目名称:gisa,代码行数:101,代码来源:CatalogoMultinivel.cs


注:本文中的Paragraph.setIndentationLeft方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。