Doping is an efficient way to open the zero band gap of graphene. The control of the dopant domain size allows us to tailor the electronic structure and the properties of the graphene. We have studied the electronic structure of boron nitride doped graphenes with different domain sizes by simulating their near-edge X-ray absorption fine structure (NEXAFS) spectra at the N K-edge. Six different doping configurations (five quantum dot type and one phase-separated zigzag-edged type) were chosen, and N K-edge NEXAFS spectra were calculated with large truncated cluster models by using the density functional theory with hybrid functional and the equivalent core hole approximation. The opening of the band gap as a function of the domain size is revealed. We found that nitrogens in the dopant boundary contribute a weaker, red-shifted π∗ peak in the spectra as compared to those in the dopant domain center. The shift is related to the fact that these interfacial nitrogens dominate the lowest conduction band of the system. Upon increasing the domain size, the ratio of interfacial atom decreases, which leads to a blue shift of the π∗ peak in the total NEXAFS spectra. The spectral evolution agrees well with experiments measured at different BN-dopant concentrations and approaches to that of a pristine h-BN sheet.