public RPLItemProps GetItemProps(long startOffset, out byte elementType) { elementType = 0; if (startOffset >= 0 && this.m_rplContext.BinaryReader != null) { return(RPLReader.ReadElementProps(startOffset, this.m_rplContext, out elementType)); } return(null); }
public RPLItemProps GetItemProps(object rplSource, out byte elementType) { elementType = 0; RPLItemProps rPLItemProps = rplSource as RPLItemProps; if (rPLItemProps != null) { if (rPLItemProps is RPLTextBoxProps) { elementType = 7; } else if (rPLItemProps is RPLChartProps) { elementType = 11; } else if (rPLItemProps is RPLGaugePanelProps) { elementType = 14; } else if (rPLItemProps is RPLMapProps) { elementType = 21; } else if (rPLItemProps is RPLImageProps) { elementType = 9; } else if (rPLItemProps is RPLLineProps) { elementType = 8; } return(rPLItemProps); } long num = (long)rplSource; if (num >= 0 && this.m_rplContext.BinaryReader != null) { return(RPLReader.ReadElementProps(num, this.m_rplContext, out elementType)); } return(null); }