Functions/PageBreak.Internal.ps1
#region PageBreak Private Functions function New-PScriboPageBreak { <# .SYNOPSIS Creates a PScribo page break object. .NOTES This is an internal function and should not be called directly. #> [CmdletBinding()] [OutputType([System.Management.Automation.PSCustomObject])] param ( [Parameter(Position = 0)] [ValidateNotNullOrEmpty()] [System.String] $Id = [System.Guid]::NewGuid().ToString() ) process { $typeName = 'PScribo.PageBreak'; $pscriboDocument.Properties['PageBreaks']++; $pscriboPageBreak = [PSCustomObject] @{ Id = $Id; Type = $typeName; } return $pscriboPageBreak; } } #end function New-PScriboPageBreak #endregion PageBreak Private Functions |