Shape.AccessibleName 속성
내게 필요한 옵션 지원 클라이언트 응용 프로그램에서 사용 하는 컨트롤의 이름을 가져오거나 설정 합니다.
네임스페이스: Microsoft.VisualBasic.PowerPacks
어셈블리: Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)
구문
‘선언
<BrowsableAttribute(True)> _
Public Property AccessibleName As String
[BrowsableAttribute(true)]
public string AccessibleName { get; set; }
[BrowsableAttribute(true)]
public:
property String^ AccessibleName {
String^ get ();
void set (String^ value);
}
[<BrowsableAttribute(true)>]
member AccessibleName : string with get, set
function get AccessibleName () : String
function set AccessibleName (value : String)
속성 값
형식: System.String
A String 의 내게 필요한 옵션 지원 클라이언트 응용 프로그램에서 사용 되는 컨트롤의 이름을 표시 합니다.기본값은 null 참조(Visual Basic의 경우 Nothing)입니다.
설명
AccessibleName 속성은 간단 하 게 설명 하 고 해당 컨테이너 내에서 개체를 식별 하는 레이블이 있습니다.예를 들어, 셰이프가 있을 수 있습니다에서 AccessibleName "작은 타원" 또는 "파란색 사각형." 한 줄에 있을 수 있습니다는 AccessibleName "세로 줄" 또는 "대각선 빨간색 선입니다."
예제
다음 예제에서는 설정 하는 방법을 보여 줍니다.의 AccessibleName 및 AccessibleDescription 속성에 대 한는 OvalShape 컨트롤."선인장" 자원으로 프로젝트에서 라는 그림 파일을 추가 하는 것으로 가정 합니다.
Dim OvalShape1 As New OvalShape
Dim canvas As New ShapeContainer
' Set the form as the parent of the ShapeContainer.
canvas.Parent = Me
' Set the ShapeContainer as the parent of the OvalShape.
OvalShape1.Parent = canvas
' Assign an image resource to the BackgroundImage property.
OvalShape1.BackgroundImage = My.Resources.cactus
OvalShape1.Size = New Size(My.Resources.cactus.Size)
' Assign the AccessibleName and AccessibleDescription text.
OvalShape1.AccessibleName = "Image"
OvalShape1.AccessibleDescription = "A picture of a cactus"
OvalShape OvalShape1 = new OvalShape();
ShapeContainer canvas = new ShapeContainer();
// Set the form as the parent of the ShapeContainer.
canvas.Parent = this;
// Set the ShapeContainer as the parent of the OvalShape.
OvalShape1.Parent = canvas;
// Assign an image resource to the BackgroundImage property.
OvalShape1.BackgroundImage = VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus;
OvalShape1.Size = new Size(VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus.Height,
VbPowerPacksShapeAccessibleCS.Properties.Resources.cactus.Width);
// Assign the AccessibleName and AccessibleDescription text.
OvalShape1.AccessibleName = "Image";
OvalShape1.AccessibleDescription = "A picture of a cactus";
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.VisualBasic.PowerPacks 네임스페이스
기타 리소스
방법: LineShape 컨트롤로 선 그리기(Visual Studio)
방법: OvalShape 및 RectangleShape 컨트롤을 사용하여 도형 그리기(Visual Studio)