Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2001
//
// File: TextEffect.cs
//
// Contents: TextEffect class
//
// Created: 3/23/2004 garyyang
//
//-----------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows;
using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.ComponentModel;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
namespace System.Windows.Media
{
///
/// The class definition for TextEffect
///
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
///
/// Constructor to TextEffect
///
/// transform of the text effect
/// foreground of the text effect
/// clip of the text effect
/// starting character index of the text effect
/// number of code points
public TextEffect(
Transform transform,
Brush foreground,
Geometry clip,
int positionStart,
int positionCount
)
{
if (positionCount < 0)
{
throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative));
}
Transform = transform;
Foreground = foreground;
Clip = clip;
PositionStart = positionStart;
PositionCount = positionCount;
}
///
/// constructor
///
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2001
//
// File: TextEffect.cs
//
// Contents: TextEffect class
//
// Created: 3/23/2004 garyyang
//
//-----------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows;
using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.ComponentModel;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
namespace System.Windows.Media
{
///
/// The class definition for TextEffect
///
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
///
/// Constructor to TextEffect
///
/// transform of the text effect
/// foreground of the text effect
/// clip of the text effect
/// starting character index of the text effect
/// number of code points
public TextEffect(
Transform transform,
Brush foreground,
Geometry clip,
int positionStart,
int positionCount
)
{
if (positionCount < 0)
{
throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative));
}
Transform = transform;
Foreground = foreground;
Clip = clip;
PositionStart = positionStart;
PositionCount = positionCount;
}
///
/// constructor
///
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleServicesContext.cs
- RegistryPermission.cs
- PartitionResolver.cs
- CapabilitiesUse.cs
- SerializationInfo.cs
- DataGridParentRows.cs
- XXXInfos.cs
- SelectionEditor.cs
- MetadataProperty.cs
- GeometryModel3D.cs
- Debugger.cs
- ReadOnlyDictionary.cs
- Rfc2898DeriveBytes.cs
- TraceEventCache.cs
- XmlValidatingReaderImpl.cs
- CorrelationManager.cs
- TargetControlTypeAttribute.cs
- LicFileLicenseProvider.cs
- CompoundFileReference.cs
- Oid.cs
- InfoCardProofToken.cs
- COM2PropertyDescriptor.cs
- SeverityFilter.cs
- PassportPrincipal.cs
- Properties.cs
- MultiPageTextView.cs
- XamlPointCollectionSerializer.cs
- CustomAttributeFormatException.cs
- CodeIndexerExpression.cs
- Attachment.cs
- RSACryptoServiceProvider.cs
- TextEditorTables.cs
- NameScope.cs
- RegexFCD.cs
- KerberosRequestorSecurityToken.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Stylesheet.cs
- BindingValueChangedEventArgs.cs
- RegexRunnerFactory.cs
- NavigatingCancelEventArgs.cs
- HttpAsyncResult.cs
- CodeAssignStatement.cs
- DataStorage.cs
- SessionParameter.cs
- ErrorTableItemStyle.cs
- XamlNamespaceHelper.cs
- TypeConverterHelper.cs
- FormsAuthenticationUserCollection.cs
- XmlSchemaInclude.cs
- Exceptions.cs
- SizeF.cs
- MemberHolder.cs
- SimpleBitVector32.cs
- PropertyValue.cs
- BitmapDecoder.cs
- DownloadProgressEventArgs.cs
- TemplatingOptionsDialog.cs
- GridViewDesigner.cs
- BufferModesCollection.cs
- MTConfigUtil.cs
- DataGridAddNewRow.cs
- CheckoutException.cs
- CommonDialog.cs
- UnhandledExceptionEventArgs.cs
- DifferencingCollection.cs
- FontStyleConverter.cs
- HttpPostProtocolReflector.cs
- OneToOneMappingSerializer.cs
- DocumentPageTextView.cs
- ExpressionBindingCollection.cs
- FastPropertyAccessor.cs
- SqlCommandBuilder.cs
- EditableRegion.cs
- TreeNodeEventArgs.cs
- MDIWindowDialog.cs
- StringUtil.cs
- _Connection.cs
- OleDbErrorCollection.cs
- SmtpFailedRecipientsException.cs
- WebBaseEventKeyComparer.cs
- ServiceAuthorizationElement.cs
- LineServices.cs
- HyperLinkStyle.cs
- TextShapeableCharacters.cs
- HashMembershipCondition.cs
- ViewGenResults.cs
- documentsequencetextcontainer.cs
- newinstructionaction.cs
- ComplexObject.cs
- HttpValueCollection.cs
- TextBox.cs
- TextServicesPropertyRanges.cs
- OperationAbortedException.cs
- CharacterShapingProperties.cs
- METAHEADER.cs
- DebugHandleTracker.cs
- NameTable.cs
- BamlRecords.cs
- WebPartsPersonalizationAuthorization.cs
- BoundColumn.cs