iTextSharp.text.TabSettings.GetTabStopNewInstance C# (CSharp) Метод

GetTabStopNewInstance() публичный Метод

public GetTabStopNewInstance ( float currentPosition ) : TabStop
currentPosition float
Результат TabStop
        public TabStop GetTabStopNewInstance(float currentPosition)
        {
            TabStop tabStop = null;
            if (tabStops != null)
            {
                foreach (TabStop currentTabStop in tabStops)
                {
                    if (currentTabStop.Position - currentPosition > 0.001)
                    {
                        tabStop = new TabStop(currentTabStop);
                        break;
                    }
                }
            }

            if (tabStop == null)
            {
                tabStop = TabStop.NewInstance(currentPosition, tabInterval);
            }

            return tabStop;
        }
    }

Usage Example

Пример #1
0
 public static TabStop getTabStopNewInstance(float currentPosition, TabSettings tabSettings)
 {
     if (tabSettings != null)
     {
         return(tabSettings.GetTabStopNewInstance(currentPosition));
     }
     return(TabStop.NewInstance(currentPosition, DEFAULT_TAB_INTERVAL));
 }
All Usage Examples Of iTextSharp.text.TabSettings::GetTabStopNewInstance