BooleanFieldFormat 클래스
Boolean 필드에 대한 Boolean 출력 형식을 가져오거나 설정할 수 있습니다.
이 형식의 멤버 목록을 보려면 BooleanFieldFormat 멤버를 참조하십시오.
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.ReportObjectProperty
BooleanFieldFormat
[Visual Basic]
Public Class BooleanFieldFormat
Implements IDisposable
[C#]
public class BooleanFieldFormat : IDisposable
설명
FieldFormat 개체의 BooleanFormat 속성을 사용하여 BooleanFieldFormat 개체를 검색합니다.
예제
다음 예제는 BooleanFieldFormat 개체를 반환합니다.
[VJ#]
private BooleanFieldFormat getBooleanFieldformat
(String reportObjectName)
{
FieldObject field;
BooleanFieldFormat booleanFormat = null;
try
{
field =
(FieldObject)Report.get_ReportDefinition()
.get_ReportObjects().get_Item(reportObjectName);
if (field.get_DataSource().get_ValueType() ==
FieldValueType.BooleanField)
booleanFormat = field.get_FieldFormat().get_BooleanFormat();
}
catch (Exception e)
{
}
return booleanFormat;
}
[Visual Basic]
Function GetBooleanFieldformat _
(ByVal reportObjectName As String) As BooleanFieldFormat
Dim field As FieldObject
Dim booleanFormat As BooleanFieldFormat
If TypeOf _
(Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)) Is FieldObject Then
field = _
Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)
If field.DataSource.ValueType = _
FieldValueType.BooleanField Then
booleanFormat = field.FieldFormat.BooleanFormat
GetBooleanFieldformat = booleanFormat
Else : GetBooleanFieldformat = Nothing
End If
Else : GetBooleanFieldformat = Nothing
End If
End Function
[C#]
private BooleanFieldFormat GetBooleanFieldformat
(string reportObjectName)
{
FieldObject field;
BooleanFieldFormat booleanFormat;
field =
Report.ReportDefinition.ReportObjects[reportObjectName]
as FieldObject;
if (field != null)
{
if (field.DataSource.ValueType ==
FieldValueType.BooleanField)
{
booleanFormat = field.FieldFormat.BooleanFormat;
return booleanFormat;
}
else return null;
}
else return null;
}
요구 사항
네임스페이스 CrystalDecisions.CrystalReports.Engine
어셈블리 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
참고 항목
BooleanFieldFormat 멤버 | CrystalDecisions.CrystalReports.Engine 네임스페이스
©2005 Business Objects SA All rights reserved.
Business Objects SA http://www.businessobjects.com/ 지원 서비스 http://korea.businessobjects.com/services/ |